You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
* change responseExample from string to map
* -for openapi: if multiple examples, get with the fir one. key is the status code.
if statusCode is default, status code = -1;
-for swagger generation, status code is always 200;
-added trim for http/https ports
* change responseExample from string to map
* -for openapi: if multiple examples, get with the fir one. key is the status code.
if statusCode is default, status code = -1;
-for swagger generation, status code is always 200;
-added trim for http/https ports
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
The text was updated successfully, but these errors were encountered: