You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
In response to #18302, simple fields no longer undergo validation, which includes enums as well. However, it seems that enum classes that are componentized are considered container types, and without setting isContainer, the @Valid annotation does not get removed.
openapi-generator version
7.5.0
Steps to reproduce
This can be reproduced by implementing such an API definition.
Bug Report Checklist
Description
In response to #18302, simple fields no longer undergo validation, which includes enums as well. However, it seems that enum classes that are componentized are considered container types, and without setting isContainer, the
@Valid
annotation does not get removed.openapi-generator version
7.5.0
Steps to reproduce
This can be reproduced by implementing such an API definition.
The
@Valid
was missing for enum parameters defined inline.However, enums described in
components
still had@Valid
.Related issues/PRs
#18302
Suggest a fix
of this file.
https://github.com/OpenAPITools/openapi-generator/blob/v7.5.0/modules/openapi-generator/src/main/resources/JavaJaxRS/beanValidation.mustache
This part of the file
By modifying the file like this,
@Valid
has been removed even for enum types defined incomponents
.The text was updated successfully, but these errors were encountered: