Skip to content

[REQ] Disable TYPE_USE @Valid bean validation annotation #17874

@jpraet

Description

@jpraet

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.

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