swagger-codegen
swagger-codegen copied to clipboard
Error generating kotlin for bitbucket api
Description
I got the following error trying to generate Kotlin code from the bitbucket API specification
{"code":1,"type":"error","message":"Unable to build target: Could not process model 'branch'. Please make sure that your schema is correct!"}
It works ok with Java and Ruby.
Swagger-codegen version
The current one used by the online generator
Swagger declaration file content or url
https://api.bitbucket.org/swagger.json
Command line used for generation
curl -X POST -H "content-type:application/json" -d '{"swaggerUrl":"https://api.bitbucket.org/swagger.json"}' https://generator.swagger.io/api/gen/clients/kotlin
Steps to reproduce
-
Rerun curl command above
-
Run again, but change "kotlin" to "java" at the end of the command.
-
Gives error, 2. works.