Closed johnthecat closed 4 years ago
During integration we stuck on typescript convert step - method EnumTypeScriptDescriptor#_enumItemName (Go to) accepts only string, but in our case there is a number in some cases For example:
EnumTypeScriptDescriptor#_enumItemName
("paths" struct in OpenAPI v3 contract) "/accounts/captcha": { "post": { "requestBody": { // skip }, "responses": { "200": { "description": "Успех" }, "409": { "content": { "application/json": { "schema": { "status": { "enum": [ 409 // <=========== this ], "example": 409, "type": "integer" }, }, } } }, }, }, }
Fixed with new published version — https://github.com/koshevy/codegena/blob/master/libs/oapi3ts/CHANGELOG.md#214-2020-03-05
During integration we stuck on typescript convert step - method
EnumTypeScriptDescriptor#_enumItemName
(Go to) accepts only string, but in our case there is a number in some cases For example: