Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] [JAVA] [JAXRS-SPEC] Outer enum is given @Valid in jaxrs-spec #18681

Closed
5 of 6 tasks
CREKD127 opened this issue May 16, 2024 · 1 comment
Closed
5 of 6 tasks

[BUG] [JAVA] [JAXRS-SPEC] Outer enum is given @Valid in jaxrs-spec #18681

CREKD127 opened this issue May 16, 2024 · 1 comment

Comments

@CREKD127
Copy link
Contributor

CREKD127 commented May 16, 2024

Bug Report Checklist

  • Have you provided a full/minimal spec to reproduce the issue?
  • Have you validated the input using an OpenAPI validator (example)?
  • Have you tested with the latest master to confirm the issue still exists?
  • Have you searched for related issues/PRs?
  • What's the actual output vs expected output?
  • [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description

#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

@CREKD127 CREKD127 changed the title [BUG] [JAVA] [JAXRS-SPEC] Description [BUG] [JAVA] [JAXRS-SPEC] Outer enum is given @Valid in jaxrs-spec. May 16, 2024
@CREKD127 CREKD127 changed the title [BUG] [JAVA] [JAXRS-SPEC] Outer enum is given @Valid in jaxrs-spec. [BUG] [JAVA] [JAXRS-SPEC] Outer enum is given @Valid in jaxrs-spec May 16, 2024
@wing328
Copy link
Member

wing328 commented May 19, 2024

closed via #18697

@wing328 wing328 closed this as completed May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants