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
I also noticed that if you define a property with the type string and nullable:true as required, the openapi-generator-maven-plugin with the generator spring will add the @NotNull annotation which seems wrong to me.
This was answered quite some time ago (use type: [object, "null"] in 3.1, where "null" must be a string and not a literal null), so I'm closing it as resolved.
Activity
loqusion commentedon Oct 1, 2021
Assuming you're using version 3.1.0,
nullablewas apparently removed in favor of the'null'type.See https://stackoverflow.com/a/48114322/17003575
patrickuhlmann commentedon Dec 7, 2021
I also noticed that if you define a property with the type string and nullable:true as required, the openapi-generator-maven-plugin with the generator spring will add the @NotNull annotation which seems wrong to me.
Definition:
Results in:
handrews commentedon Jan 25, 2024
This was answered quite some time ago (use
type: [object, "null"]in 3.1, where"null"must be a string and not a literalnull), so I'm closing it as resolved.