swagger-api / swagger-api/swagger-codegen
[Java codegen] Abstract model definition
Open
Nobody has claimed this yet.
Client: Java
Enhancement: Feature
Server: Java
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Is there any solution to generate an abstract class using Swagger Codegen ? (java/jaxrs or jaxrs-cxf) ?
If not, how can it be implemented in my own codegen ?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the Java codegen paths for the jaxrs and jaxrs-cxf generators, including their model templates and configuration options. Determine how an abstract model definition would be represented and whether the generators can expose that choice. Done means a documented, working way to generate abstract Java model classes, with coverage for the supported generator variants.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100