Add @NotBlank @NotEmpty support for generated API definition (Bean Validation 2.0)
See original GitHub issue…so, these to be treated as @NotNull treated now -> like those annotated params REQUIRED.
Otherwise it is a bit annoying and a performance overhead to add both
@NotNull
@NotEmpty
String s;
on all String
s let’s say.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:4
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Difference Between @NotNull, @NotEmpty, and @NotBlank ...
Bean Validation is a standard validation specification that allows us to easily validate domain objects by using a set of constraints ...
Read more >Bean Validation @NotNull, @NotBlank and @NotEmpty does ...
BV works but only empty fields not ... You should then remove it (it defaults to auto , i.e. only when JSR303 Bean...
Read more >Bean Validation specification
This document is the specification of the Java API for JavaBean validation in Java EE and Java SE. The technical objective of this...
Read more >Search - Issue navigator - Hibernate JIRA
: BeanValidation's @NotBlank and @NotEmpty annotations should be include the @NotNull annotation. If so, the ddl creation problem will be solved ...
Read more >Validation with Hibernate Validator - Quarkus
Yes it does not compile, Result is missing, but we will add it very soon. The method parameter ( book ) is created...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi, I am using the version 2.9.2 and
@NotBlank
and@NotEmpty
doesn’t work.@NotNull
does work.any plans to fix this in swagger 1.5.X?