swagger-codegen icon indicating copy to clipboard operation
swagger-codegen copied to clipboard

Error generating kotlin for bitbucket api

Open rojeras opened this issue 5 years ago • 0 comments

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
  1. Rerun curl command above

  2. Run again, but change "kotlin" to "java" at the end of the command.

  3. Gives error, 2. works.

Related issues/PRs
Suggest a fix/enhancement

rojeras avatar Apr 20 '21 07:04 rojeras