[BUG] [JAVA] [JAXRS-SPEC] Outer enum is given @Valid in jaxrs-spec
Bug Report Checklist
- [x] Have you provided a full/minimal spec to reproduce the issue?
- [x] Have you validated the input using an OpenAPI validator (example)?
- [x] Have you tested with the latest master to confirm the issue still exists?
- [x] Have you searched for related issues/PRs?
- [x] What's the actual output vs expected output?
- [ ] [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
https://github.com/OpenAPITools/openapi-generator/issues/18430
In this Issue, we have added support for not performing validation on enums that are not inline.
But, when I generate it using jaxrs-spec, it still has the @Valid annotation.
OpenAPI declaration file content or url
The test added in this PR is still given @Valid.
https://github.com/OpenAPITools/openapi-generator/pull/18664/files#diff-b84cef880717fd1f86abd47136c71acaa9c93ce0f3b4cc0093274a3ccfcefd78R143
https://github.com/OpenAPITools/openapi-generator/pull/18664/files#diff-b84cef880717fd1f86abd47136c71acaa9c93ce0f3b4cc0093274a3ccfcefd78R162
Perhaps @Valid is no longer given in jaxrs modules other than jaxrs-spec.
https://github.com/OpenAPITools/openapi-generator/pull/18451/files#diff-0193b51e2ebc7a334d29a9aa3f277cea846352f7ae2b168a3cf08af1fa939508R281