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
Run swagger-codegen generate -i https://raw.githubusercontent.com/opsgenie/opsgenie-oas/master/swagger.json -l scala -o ./ogswagger/
Result:
Outputs the content of swagger.json to stdout and appends the following at the end:
Exception in thread "Thread-1" java.lang.NullPointerException
at io.swagger.v3.parser.converter.SwaggerConverter.lambda$convert$0(SwaggerConverter.java:199)
at java.util.LinkedHashMap.forEach(LinkedHashMap.java:684)
at io.swagger.v3.parser.converter.SwaggerConverter.convert(SwaggerConverter.java:198)
at io.swagger.v3.parser.converter.SwaggerConverter.readLocation(SwaggerConverter.java:95)
at io.swagger.parser.OpenAPIParser.readLocation(OpenAPIParser.java:16)
at io.swagger.codegen.v3.config.CodegenConfigurator.toClientOptInput(CodegenConfigurator.java:495)
at io.swagger.codegen.v3.cli.cmd.Generate.run(Generate.java:340)
at java.lang.Thread.run(Thread.java:748)
I've tried using the same config as in the pom.xml with the following command, but got the same result:
Try with swagger-codegen v2.4.14. The cause of the most part of the problems is that the swagger specification is not correctly adapted to swagger: 2.0. It is mixed with the openapi:3.0.x specification :(
Steps to reproduce:
Run
swagger-codegen generate -i https://raw.githubusercontent.com/opsgenie/opsgenie-oas/master/swagger.json -l scala -o ./ogswagger/
Result:
Outputs the content of
swagger.json
to stdout and appends the following at the end:I've tried using the same config as in the pom.xml with the following command, but got the same result:
swagger-codegen generate -c ./config.json --invoker-package com.opsgenie.oas.sdk --api-package com.opsgenie.oas.sdk.api --model-package com.opsgenie.oas.sdk.model -i ./swagger.json -l scala --output ./
Please assist 🙏
The text was updated successfully, but these errors were encountered: