Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Issues
  • #1018
Closed
Open
Issue created Sep 12, 2018 by Administrator@rootContributor

[Java][Jersey] Add support for BeanValidation @Valid annotation

Created by: fujigon

Description

Java Jersey generator has same issue with https://github.com/swagger-api/swagger-codegen/issues/4738 (fixed by https://github.com/swagger-api/swagger-codegen/pull/7807 for jaxrs-cxf)

Without @Valid, constraint annotations will not be evaluated. So we need to add not only constraint annotations such as @NotNull, but also @Valid.

openapi-generator version

current master (2d99836e)

OpenAPI declaration file content or url

N/A

Command line used for generation

N/A

Steps to reproduce

just read the generated sample.

Related issues/PRs
  • https://github.com/swagger-api/swagger-codegen/issues/4738
  • https://github.com/swagger-api/swagger-codegen/pull/7807
Suggest a fix/enhancement

https://github.com/fujigon/openapi-generator/commits/feature/java-jersey-validation-pojos

Assignee
Assign to
Time tracking