-
-
Notifications
You must be signed in to change notification settings - Fork 544
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
NB: This is a more specific continuation of issue #269
When generating apidocs from Kotlin data classes the non-nullable fields are not listed as required.
data class Person(
val name: String
val nickname: String?
)
The name property should be in the required list:
"Person": {
"required": [
"name"
],
...
There are workarounds like annotating the non-nullable properties with javax.validation.NotNull, but that is too verbose to my taste.
kemalizing, shotor, jacobras, daniel-shuy, mgolpashin and 2 more
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request