-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
2.2.29 do not treat @NotBlank as mandatory, breaking change? #4862
Comments
Hi @rikardhaggkvist |
pom.xml
With
If I remove
If I now switch to swagger 2.2.28, not other changes and only got
If I switch back to 2.2.29, no other changes:
So for me it's obvious the behaviour changed in 2.2.29. |
In previous versions
generated to
in 2.2.29
@NotBlank
is generated to:which in turn breaks the TypeSript code with error "Type 'string | undefined' is not assignable to type 'string'."
Now I need to add
@NotNull
to all the@NotBlank
annotations in my Java code, it seems to apply to@NotEmpty
also.The text was updated successfully, but these errors were encountered: