Created
August 4, 2020 02:03
-
-
Save alagalah/7a441cac07fca6b5169384b94a465bc2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ docker run --rm -v "${PWD}:/local" openapitools/openapi-generator-cli generate \ | |
-i https://api-beta.dev.packetfabric.net/openapi/specification/swagger.yaml \ | |
-g go \ | |
-o /local/out/go | |
Exception in thread "main" org.openapitools.codegen.SpecValidationException: There were issues with the specification. The option can be disabled via validateSpec (Maven/Gradle) or --skip-validate-spec (CLI). | |
| Error count: 1, Warning count: 0 | |
Errors: | |
-attribute paths.'/v2/ports/{port_circuit_id}/upgrade'(post).requestBody.content.'application/json'.schema.required is not of type `array` | |
at org.openapitools.codegen.config.CodegenConfigurator.toContext(CodegenConfigurator.java:533) | |
at org.openapitools.codegen.config.CodegenConfigurator.toClientOptInput(CodegenConfigurator.java:560) | |
at org.openapitools.codegen.cmd.Generate.execute(Generate.java:424) | |
at org.openapitools.codegen.cmd.OpenApiGeneratorCommand.run(OpenApiGeneratorCommand.java:32) | |
at org.openapitools.codegen.OpenAPIGenerator.main(OpenAPIGenerator.java:66) | |
# alagalah @ thing2 in /mnt/c/Users/alaga/Desktop [19:02:18] C:1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment