-
-
Notifications
You must be signed in to change notification settings - Fork 522
springdoc-openapi-starter-webmvc-ui 2.8.3 does not generate "required" properties #2871
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Could you provide an example of how the model looks in code? |
data class MyObject(
val property1: String,
val property2: UUID?
) So basically, it relies on Kotlin's nullable syntax. Sorry, I didn't mention this before, I forgot :) This always used to work up until 2.7.0 |
Thanks for the added details. I have unfortunately myself only used Java together with explicit annotations that state whether a field is required or not. But hopefully the additional details that you have provided should be enough for someone to investigate the issue. |
Not reproducible. This ticket will be closed, but can be reopened if your provide the reproducible sample. |
Since upgrading to springdoc-openapi-starter-webmvc-ui 2.8.3 (in combination with spring boot 3.4.1), properties are no longer marked as "required" in the generated openapi spec. All properties are still there, it's just that the entire "requires" list of required properties is no longer there.
For example, in 2.7.0, you would get this:
Then, in 2.8.3, it becomes this:
We had to revert to 2.7.0 for the time being.
The text was updated successfully, but these errors were encountered: