Skip to content

Missing Support for new Annotations from Bean Validation API 2.0 #3024

@aburmeis

Description

@aburmeis

Feature Request: Version 2.9 works well with Spring 5 but using springfox-bean-validators (which has a dependency on validation-api 2.0.1.Final) still supports only annotations from validation API 1.0.
SO if I annotate a string model property with @NotEmpty instead of @NotNull the expected required is missing. It would be great if new annotations would also be taken into considerations generating the definition types:

  • @NotEmptyand @NotBlank for required
  • @Positive, @PositiveOrZero, @Negative, @NegativeOrZero for minimum/maximum/... as Size, Min and Max
  • @Email for format

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions