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
This is from v1.2. Not sure if it's also applied to v2.0.
./bin/runscala.sh com.wordnik.swagger.codegen.BasicScalaGenerator http://localhost:8000/xitrum/swagger
base path is http://localhost:8000/xitrum/swagger
swagger version: 1.2
basePath:
api version: 1.0-SNAPSHOT
Aug 28, 2014 3:53:52 PM com.wordnik.swagger.codegen.spec.SwaggerSpecValidator validate
WARNING: no models found for listing http://localhost:8000
Aug 28, 2014 3:53:52 PM com.wordnik.swagger.codegen.spec.SwaggerSpecValidator validate
WARNING: no models found for listing http://localhost:8000
----------
java.lang.ArrayIndexOutOfBoundsException: 1
at com.wordnik.swagger.codegen.PathUtil$class.resourceNameFromFullPath(PathUtil.scala:61)
at com.wordnik.swagger.codegen.BasicGenerator.resourceNameFromFullPath(BasicGenerator.scala:39)
at com.wordnik.swagger.codegen.BasicGenerator$$anonfun$groupOperationsToFiles$2.apply(BasicGenerator.scala:384)
at com.wordnik.swagger.codegen.BasicGenerator$$anonfun$groupOperationsToFiles$2.apply(BasicGenerator.scala:383)
at scala.collection.TraversableLike$WithFilter$$anonfun$foreach$1.apply(TraversableLike.scala:778)
at scala.collection.immutable.List.foreach(List.scala:381)
at scala.collection.TraversableLike$WithFilter.foreach(TraversableLike.scala:777)
at com.wordnik.swagger.codegen.BasicGenerator.groupOperationsToFiles(BasicGenerator.scala:383)
at com.wordnik.swagger.codegen.BasicGenerator.generate(BasicGenerator.scala:120)
at com.wordnik.swagger.codegen.BasicGenerator.generateClientWithoutExit(BasicGenerator.scala:74)
at com.wordnik.swagger.codegen.BasicGenerator.generateClient(BasicGenerator.scala:56)
at com.wordnik.swagger.codegen.BasicScalaGenerator$.main(BasicScalaGenerator.scala:22)
at com.wordnik.swagger.codegen.BasicScalaGenerator.main(BasicScalaGenerator.scala)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at scala.reflect.internal.util.ScalaClassLoader$$anonfun$run$1.apply(ScalaClassLoader.scala:68)
at scala.reflect.internal.util.ScalaClassLoader$class.asContext(ScalaClassLoader.scala:31)
at scala.reflect.internal.util.ScalaClassLoader$URLClassLoader.asContext(ScalaClassLoader.scala:99)
at scala.reflect.internal.util.ScalaClassLoader$class.run(ScalaClassLoader.scala:68)
at scala.reflect.internal.util.ScalaClassLoader$URLClassLoader.run(ScalaClassLoader.scala:99)
at scala.tools.nsc.CommonRunner$class.run(ObjectRunner.scala:22)
at scala.tools.nsc.ObjectRunner$.run(ObjectRunner.scala:39)
at scala.tools.nsc.CommonRunner$class.runAndCatch(ObjectRunner.scala:29)
at scala.tools.nsc.ObjectRunner$.runAndCatch(ObjectRunner.scala:39)
at scala.tools.nsc.MainGenericRunner.runTarget$1(MainGenericRunner.scala:65)
at scala.tools.nsc.MainGenericRunner.run$1(MainGenericRunner.scala:87)
at scala.tools.nsc.MainGenericRunner.process(MainGenericRunner.scala:98)
at scala.tools.nsc.MainGenericRunner$.main(MainGenericRunner.scala:103)
at scala.tools.nsc.MainGenericRunner.main(MainGenericRunner.scala)
This is from v1.2. Not sure if it's also applied to v2.0.
This error happen with xitrum-framework/matsuri14@f127509 's demo project
Generated jsons
http://localhost:8000/xitrum/swagger
http://localhost:8000/xitrum/swagger/admin
http://localhost:8000/xitrum/swagger/auth
The text was updated successfully, but these errors were encountered: