openapi-generator
openapi-generator copied to clipboard
[REQ] Disable TYPE_USE @Valid bean validation annotation
Is your feature request related to a problem? Please describe.
As of openapi-generator 7.2.0 the following code gets generated with the jaxrs-spec generator:
private @Valid List<@Valid Address> addresses;
In openapi-generator 7.1.0 this was:
private @Valid List<Address> addresses;
The @Valid annotation does not permit location TYPE_USE on Java EE 7 (bean-validation 1.1).
This is only possible since Java EE 8 (bean-validation 2.0).
Describe the solution you'd like
Option to disable TYPE_USE @Valid annotation, or to configure the bean-validation version to use.