We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
eg: if enum contain single quote in it's body => when pass to prettier => it should be error
From openApi: eg: enum : [ "this is normal", "but this's why cause error" # => this will cause error on parser ]
The text was updated successfully, but these errors were encountered:
I suggest something like this: (add safe surroundEnum) for : 3 generators
const safeSurroundEnum = (item: string): string => { if (item.indexOf("'") != -1) { return surround('"', '"')(item); } return surround("'", "'")(item); }; export const typeScriptGenerator: Generator = { ... getTypeEnum: flow(map(safeSurroundEnum), getUnion), ... };
Sorry, something went wrong.
No branches or pull requests
eg: if enum contain single quote in it's body => when pass to prettier => it should be error
From openApi:
eg: enum : [
"this is normal",
"but this's why cause error" # => this will cause error on parser
]
The text was updated successfully, but these errors were encountered: