networknt / networknt/light-codegen
setting serializableModel to true to implement serilizable for modal classes not working
Open
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 49
- Forks
- 25
- PR merge metrics
- No merged PRs in 30d
Description
In the config Json, I added serializableModel: true but still classes are not generating with implement serializable. Is there any additional setting need to be done to have all classes implement Serializable interface.
{
"name": "hello",
"version": "0.1.0",
"groupId": "com.hello",
"artifactId": "0.1.0",
"rootPackage": "com.networknt.eventuate.account.command",
"handlerPackage":"com.networknt.eventuate.account.command.handler",
"modelPackage":"com.hello",
"serializableModel": true,
"overwriteHandler": true,
"overwriteHandlerTest": true,
"overwriteModel": true,
"httpPort": 8080,
"enableHttp": false,
"httpsPort": 8443,
"enableHttps": false,
"enableRegistry": false,
"supportOracle": false,
"supportMysql": false,
"supportPostgresql": false,
"supportH2ForTest": false,
"supportClient": false
}
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 reproducing the generator with the supplied config JSON and inspect the generated model classes to confirm whether serializableModel is being recognized. Trace the configuration and model-generation path, then verify that the affected classes implement Serializable when generation completes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100