[Java][Jersey] Add support for BeanValidation @Valid annotation
Created by: fujigon
Description
Java Jersey generator has same issue with https://github.com/swagger-api/swagger-codegen/issues/4738 (fixed by https://github.com/swagger-api/swagger-codegen/pull/7807 for jaxrs-cxf)
Without @Valid
, constraint annotations will not be evaluated.
So we need to add not only constraint annotations such as @NotNull
, but also @Valid
.
openapi-generator version
current master (2d99836e)
OpenAPI declaration file content or url
N/A
Command line used for generation
N/A
Steps to reproduce
just read the generated sample.
Related issues/PRs
- https://github.com/swagger-api/swagger-codegen/issues/4738
- https://github.com/swagger-api/swagger-codegen/pull/7807
Suggest a fix/enhancement
https://github.com/fujigon/openapi-generator/commits/feature/java-jersey-validation-pojos