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

{"code":1,"type":"error","message":"Unable to build target: Could not generate api file for 'PartsOrder'"}

Open jemprince opened this issue 9 years ago • 7 comments

Description

codgen fails to produce c#

Swagger-codegen version

latest

Swagger declaration file content or url

see attached file codegen.txt

jemprince avatar Jul 19 '17 16:07 jemprince

@jemprince have you used https://editor.swagger.io or other tools to validate the spec?

wing328 avatar Jul 20 '17 11:07 wing328

I'm having the same problem except with python and it only happens when using https://editor.swagger.io, however it works if you run the code gen locally with version 2.3.0.

ccp-zoetrope avatar Jul 20 '17 11:07 ccp-zoetrope

@ccp-zoetrope from what I know, https://editor.swagger.io is running Swagger Generator 2.2.3 so please use the local JAR (2.3.0) for the time being. (you can also use the SNAPSHOT version of the latest master, which is v2.3.0)

wing328 avatar Jul 20 '17 11:07 wing328

@wing328 do you know if https://editor.swagger.io will be moving to 2.3.0? If so, any ideas on when?

ccp-zoetrope avatar Jul 20 '17 11:07 ccp-zoetrope

@jemprince have you used https://editor.swagger.io or other tools to validate the spec? No. The spec we use hasn't changed in months. This swagger site (and a couple of others) has been working for 6 months and nothing has changed this started to break some time after 14 july.

jemprince avatar Jul 20 '17 12:07 jemprince

@wing328 do you know if https://editor.swagger.io will be moving to 2.3.0? If so, any ideas on when?

@ccp-zoetrope We hope to release 2.3.0 by the end of Aug.

wing328 avatar Jul 20 '17 15:07 wing328

@jemprince please roll back to the stable release v2.2.2 for the time being: https://github.com/swagger-api/swagger-codegen/releases

Swagger Codegen v2.2.3 is using a newer version of Swagger Parser, which might explain the issue you're seeing.

wing328 avatar Jul 20 '17 15:07 wing328