You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue: The Swagger API specification generates incorrect request body examples when the RequestBody contains LocalTime, YearMonth, or MonthDay. The generated format does not comply with ISO 8601, displaying unexpected fields and values.
To Reproduce
version
java version : 17
springboot version : 3.4.3
Springdoc OpenAPI version : org.springdoc:springdoc-openapi-starter-webmvc-ui:2.8.5
lombok version : 1.18.36
Describe the bug
Issue: The Swagger API specification generates incorrect request body examples when the RequestBody contains LocalTime, YearMonth, or MonthDay. The generated format does not comply with ISO 8601, displaying unexpected fields and values.
To Reproduce
version
java version : 17
springboot version : 3.4.3
Springdoc OpenAPI version : org.springdoc:springdoc-openapi-starter-webmvc-ui:2.8.5
lombok version : 1.18.36
TestController
Swagger default request body (incorrect behavior)

Swagger default example (Try it out result)

The value 1073741824 is 2³⁰, but its presence in the request body is unclear.
Expected output (correct ISO 8601 format)
Additional context
If this issue is still open and needs a fix, I would love to contribute. Please let me know if I can work on this.
The text was updated successfully, but these errors were encountered: