networknt / networknt/light-codegen
send example as response cause exception when generating with swagger
@BalloonWen is already working on this.
Since Jul 24, 2019.
- Dominant language
- Java
- Stars
- 49
- Forks
- 25
- PR merge metrics
- No merged PRs in 30d
Description
send example as response cause exception when generating with swagger
Exception in thread "main" com.fizzed.rocker.RenderingException: templates/rest/handler.rocker.raw [line 26:9]: Index 1 out of bounds for length 1
at com.fizzed.rocker.runtime.DefaultRockerTemplate.__render(DefaultRockerTemplate.java:105)
at com.fizzed.rocker.runtime.DefaultRockerModel.doRender(DefaultRockerModel.java:67)
at com.fizzed.rocker.runtime.DefaultRockerModel.render(DefaultRockerModel.java:42)
at com.networknt.codegen.Generator.transfer(Generator.java:85)
at com.networknt.codegen.rest.SwaggerGenerator.generate(SwaggerGenerator.java:292)
at com.networknt.codegen.Cli.run(Cli.java:108)
at com.networknt.codegen.Cli.main(Cli.java:56)
Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
at templates.rest.handler$Template.__doRender(handler.java:361)
at com.fizzed.rocker.runtime.DefaultRockerTemplate.__render(DefaultRockerTemplate.java:98)
... 6 more
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.
Assessment
This issue has not been assessed yet.