-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trouble when generating with string type definitions #2
Comments
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/ |
@Manweill perfect! |
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 |
Hi! |
@damir-manapov |
fix in 0.3 |
Hi!
I'm have trouble when generating with string type definitions.
Example of swagger.json:
Error:
The text was updated successfully, but these errors were encountered: