Skip to content

Conversation

@nvervelle
Copy link
Contributor

@nvervelle nvervelle commented Jul 20, 2022

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

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
@frantuma
Copy link
Contributor

frantuma commented Nov 2, 2022

Thanks a lot!

Included in and replaced by #4286

@frantuma frantuma closed this Nov 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants