Closed damir-manapov closed 5 years ago
I have not seen such a structure like this. How do you got it
@damir-manapov I can fix it,but the codegen will return empty of this swagger.json
There it is: https://swagger.io/docs/specification/2-0/enums/ It may be used as usual definition: https://app.swaggerhub.com/apis/LearningTech/EnumExample/0.0.1
@Manweill perfect! Will it work for https://api.swaggerhub.com/apis/LearningTech/EnumExample/0.0.1 ?
when you use swagger in your application,it is like this
"Contract": {
"description": "Model of the contract",
"type": "object",
"properties": {
"contractId": {
"type": "string",
"description": "Contract unique identificator in the system"
},
"contractName": {
"type": "string",
"description": "Short name of the contract"
},
"status": {
"type": "string",
"enum": [
"Placed",
"Approved",
"Started",
"Closed"
]
}
}
}
Ok, @Manweill It will be great if such swagger works
Hi! How long it might take to fix this?
@damir-manapov Welcome PR! And then, I will fix it at Mid-October
fix in 0.3
Hi!
I'm have trouble when generating with string type definitions. Example of swagger.json:
Error: