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
  • #11772
Closed
Open
Issue created Mar 02, 2022 by Administrator@rootContributor

[REQ][Java][Spring] Allow for extra class and field level annotations

Created by: jayfray12

Is your feature request related to a problem? Please describe.

I'd like to add class and field level annotations on a per object level basis so I can use the OpenAPI generator to generate Entity classes for Hibernate and JPA

Describe the solution you'd like

I'd like to be able to add an x-class-extra-annotation to the object in the spec or x-field-extra-annotation to a field similar to how the x-extra-annotation and x-setter-extra-annotation work.

Describe alternatives you've considered

I've created my own mustache templates to achieve this but would be nice if it was in the upstream

Additional context

Assignee
Assign to
Time tracking