send example as response cause exception when generating with swagger
@BalloonWen is already working on this.
Since Jul 24, 2019.
Assessment
This issue has not been assessed yet.
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
- Dominant language
- Java
- Stars
- 49
- Forks
- 25
- PR merge metrics
- No merged PRs in 30d
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.
More from networknt/light-codegen
-
enhancement help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
networknt/light-codegen#350 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 20/100
networknt/light-codegen#674 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 20/100
networknt/light-codegen#666 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 48/100
networknt/light-codegen#616 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 30/100
networknt/light-codegen#603 · 2 comments ·
All issues in networknt/light-codegen
Similar issues
-
area/plugin
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
kestra-io/plugin-kestra#190 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
google-ai-edge/LiteRT-LM#3739 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
integra-team-red/meet-map#249 ·
-
[Studio][Bug] Cancelled create-user dialog keeps the password and admin switch for the next attempt Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
apache/rocketmq-dashboard#5064 ·