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
When enabling strict mode and annotating a bean property with @jakarta.annotation.Nullable, the corresponding json property should not be added to the list of "required" properties in the JSON schema.
This behaviour would be in line with the documented behaviour (emphasis mine):
Whether to generate schemas in strict mode. In strict mode unresolved properties in JSON will cause an error. All the properties that are not annotated as nullable must be non-null.
Actual Behaviour
There seems to be no way to exclude a property from the "required" array in the generated schema.
Expected Behavior
When enabling strict mode and annotating a bean property with
@jakarta.annotation.Nullable
, the corresponding json property should not be added to the list of"required"
properties in the JSON schema.This behaviour would be in line with the documented behaviour (emphasis mine):
Actual Behaviour
There seems to be no way to exclude a property from the
"required"
array in the generated schema.Steps To Reproduce
Input:
Example.java
Output:
example.schema.json
Environment Information
No response
Example Application
No response
Version
4.7.6
The text was updated successfully, but these errors were encountered: