Closed
Description
When I generate HTML docs from this Swagger file, I get an error. This is the command I'm using:
./run-in-docker.sh generate \
-i https://raw.githubusercontent.com/jamiehannaford/swagger-magnum/jamie/v1/swagger.json \
-o samples/html \
-l html
and this is the error I get:
- docker run -it -w /gen -v /Users/jamie/projects/other/swagger-codegen:/gen -v /Users/jamie/.m2/repository:/root/.m2/repository maven:3-jdk-7 java -jar /gen/modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate -i https://raw.githubusercontent.com/jamiehannaford/swagger-magnum/jamie/v1/swagger.json -o samples/html -l html
reading from https://raw.githubusercontent.com/jamiehannaford/swagger-magnum/jamie/v1/swagger.json
PATH refs can not be internal references (through reference chain: io.swagger.models.RefPath["$ref"]) (through reference chain: io.swagger.models.Swagger["paths"]->java.util.LinkedHashMap["/baymodels"])
reading from https://raw.githubusercontent.com/jamiehannaford/swagger-magnum/jamie/v1/swagger.json
PATH refs can not be internal references (through reference chain: io.swagger.models.RefPath["$ref"]) (through reference chain: io.swagger.models.Swagger["paths"]->java.util.LinkedHashMap["/baymodels"])
Exception in thread "main" java.lang.RuntimeException: missing swagger input or config!
at io.swagger.codegen.DefaultGenerator.generate(DefaultGenerator.java:60)
at io.swagger.codegen.cmd.Generate.run(Generate.java:134)
at io.swagger.codegen.SwaggerCodegen.main(SwaggerCodegen.java:35)
Why is it not accepting $ref
s to internal or relative files? The example in the spec allows it.
Metadata
Metadata
Assignees
Labels
No labels