I use Spring Boot 2.4.5, springdoc-openapi-ui 1.5.7,
My Entity has fields:
private LocalDate beginDate;
private LocalTime beginTime;
Request body
This option does not work
{
"beginDate": "2021-04-25",
"beginTime": {
"hour": 0,
"minute": 0,
"second": 0,
"nano": 0
}
And this worker
{
"beginDate": "2021-04-25",
"beginTime": "00:00:00"
}
I tried various field annotations and adding dependencies, but I got a 400 or 500 error.
I see two possible solutions:
- configure the schema display in Swagger " 00:00:00"
- properly process the json with the painted components
Thank you in advance for your help!