swagger-core icon indicating copy to clipboard operation
swagger-core copied to clipboard

feat: replace required attribute on @Schema by requiredMode

Open nvervelle opened this issue 2 years ago • 0 comments

Add a property requiredMode on @Schema annotations that allows deciding if the heuristics on annotations like @NotNull should apply, so we can have a property annotated @NotNull but still have required = false in the openapi spec.

This is a second proposal for issue #4213, other proposal was #4216

nvervelle avatar Jul 20 '22 14:07 nvervelle