Skip to content

feat: replace required attribute on @Schema by requiredMode#4221

Closed
nvervelle wants to merge 2 commits into
swagger-api:masterfrom
nvervelle:ft/4213-Replace-required-by-requiredMode
Closed

feat: replace required attribute on @Schema by requiredMode#4221
nvervelle wants to merge 2 commits into
swagger-api:masterfrom
nvervelle:ft/4213-Replace-required-by-requiredMode

Conversation

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

frantuma commented Nov 2, 2022

Thanks a lot!

Included in and replaced by #4286

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