question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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 Strings let’s say.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

10reactions
DavidTomiccommented, Jun 20, 2019

Hi, I am using the version 2.9.2 and @NotBlank and @NotEmpty doesn’t work.

@NotNull does work.

	implementation 'io.springfox:springfox-swagger2:2.9.2'
	implementation 'io.springfox:springfox-swagger-ui:2.9.2'
	implementation 'io.springfox:springfox-bean-validators:2.9.2'
2reactions
pavansinguluricommented, Apr 26, 2020

any plans to fix this in swagger 1.5.X?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found