Forum Discussion
- MarcusJModerator
Hi,
I have reproduced this issue in Swaggerhub and opened a bug for it. As a workaround for now please manually correct the indentation until this issue is fixed. Also as an alternative you can use the swagger-codegen-cli version 2.2.3 on the command line which generates the correct indentation for this issue. Below is an example of usage to generate the Python client.
java -jar swagger-codegen-cli.jar generate -i "https://api.swaggerhub.com/apis/sirJames/sirJamesPetstore/1.0.0?json" -l python -o C:\python
You can download the swagger-codegen-cli version 2.2.3 jar file from https://mvnrepository.com/artifact/io.swagger/swagger-codegen-cli/2.2.3
Regards,
Marcus
SmartBear Support
Related Content
- 5 years ago
Recent Discussions
- 2 months ago
- 3 months ago