Open TobiPeterG opened 3 months ago
Still an issue with version 3.0.63
And type replicas is int32 and swagger code creates
1__Replicas Replicas = "1"
which is wrong...
https://cloudapi.cloud.couchbase.com
Back to Management API v4.0 Documentation
*
// List of Replicas const ( 1Replicas Replicas = "1" 2Replicas Replicas = "2" 3__Replicas Replicas = "3" )
Description
When calling the code generation with my yaml, identifiers are created that start with a number. However, the go compiler interprets them wrongly. Example code:
E.g. the 8P is interpreted as exponent, even though it's the type. These are the errors I see with this file:
Swagger-codegen version
3.0.58
Command line used for generation
java -jar swagger-codegen-cli.jar generate -i swagger.yaml -l go -o /client -DpackageName=nautobot
Steps to reproduce
clone this repo/go to this branch: https://github.com/TobiPeterG/go-nautobot/tree/switch-swagger-generator find swagger.yaml in api folder generate code using swagger
Suggest a fix/enhancement
Identifiers starting with a number could be prefixed.