Skip to content
Discussion options

You must be logged in to vote

@DerJochen , the scanner is making it required based on the presence of @NotNull on the field and the getter generated by Kotlin. When setting the required attribute, it is taking both the field and the generated method into account, so adding an annotation to apply to the getter should fix this in your case.

@get:Schema(required = false)

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@DerJochen
Comment options

Answer selected by DerJochen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment