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
{{ message }}
Repository navigation
springdoc-openapi-starter-webmvc-ui 2.8.3 does not generate "required" properties #2871
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.
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.
Activity
Mattias-Sehlstedt commentedon Jan 21, 2025
Could you provide an example of how the model looks in code?
gertjanschouten commentedon Jan 22, 2025
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
Mattias-Sehlstedt commentedon Jan 22, 2025
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.
bnasslahsen commentedon Jan 24, 2025
@gertjanschouten,
Not reproducible.
Feel free to provide a Minimal, Reproducible Example - with HelloController that reproduces the problem.
This ticket will be closed, but can be reopened if your provide the reproducible sample.
updates packages for #2871
updates packages for #2871
updates packages for springdoc#2871
updates packages for springdoc#2871