swagger-api / swagger-api/swagger-codegen
[maven-plugin] no "serializableModel" option in swagger-codegen-maven-plugin available
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Description
As the title suggested is there no option to add "implements Serializable" for the generated models in the maven-plugin, like it is in the normal cli with serializableModel=true.
Swagger-codegen version
I tried
<groupId>io.swagger</groupId>
<artifactId>swagger-codegen-maven-plugin</artifactId>
<version>2.3.1</version>
and
<groupId>io.swagger.codegen.v3</groupId>
<artifactId>swagger-codegen-maven-plugin</artifactId>
<version>3.0.18</version>
Command line used for generation
No command line, but build with maven. There the option is missing.
Steps to reproduce
Try to set the option in the config in maven pom.xml
Suggest a fix/enhancement
Add this option to the maven-plugin? It is already there in the cli, so I think it can be easily done?
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 in the swagger-codegen-maven-plugin configuration and compare its available options with the CLI's serializableModel option. Trace how the Maven plugin passes configuration to generation, then verify that enabling the option produces generated models implementing Serializable.
Written by the indexing model from the issue text.
Assessment
- Domain
- build-system, tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100