Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not set nullable: false due to Bean Validation annotations #1181

Merged
merged 1 commit into from
Jul 19, 2022

Conversation

MikeEdgar
Copy link
Member

@MikeEdgar MikeEdgar commented Jul 14, 2022

Fixes #1180

Nullable of false is the default assumed value in OpenAPI 3

@MikeEdgar MikeEdgar added the backport/2.x Issue pending backport to the 2.x series label Jul 14, 2022
@MikeEdgar MikeEdgar added this to the 3.1.0 milestone Jul 14, 2022
@@ -274,7 +273,7 @@
"properties": {
"title": {
"type": "string",
"nullable": false
"nullable": true
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Field type is Optional, resulting in the true

@MikeEdgar MikeEdgar force-pushed the 1180_remove_nullable_from_bv branch from d3377a3 to b606284 Compare July 19, 2022 23:24
@MikeEdgar
Copy link
Member Author

@phillip-kruger let me know if this looks OK.

Copy link
Member

@phillip-kruger phillip-kruger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@MikeEdgar MikeEdgar merged commit 0aeb6af into smallrye:main Jul 19, 2022
@MikeEdgar MikeEdgar deleted the 1180_remove_nullable_from_bv branch July 19, 2022 23:53
@MikeEdgar MikeEdgar removed the backport/2.x Issue pending backport to the 2.x series label Jul 20, 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.

@NotNull should not generate nullable: false
2 participants