[BUG] typescript-axios - boolean enum is generated as string enum
Created by: haedaal
Description
following schema
"schemas": {
"BooleanEnum": {
"enum": ["true", "false"],
"type": "boolean"
},
currently generates
export enum BooleanEnum {
True = 'true',
False = 'false'
}
This bug is affecting every typescript codegen, though a fix does not fix all of those
openapi-generator version
latest master
OpenAPI declaration file content or url
https://gist.github.com/haedaal/a771d6f3df337b624ae8a2c2d176c0db
Generation Details
Suggest a fix
It should generate this
export enum BooleanEnum {
True = true,
False = false
}
or this because of TS18033
export type BooleanEnum = true | false