[javascript-flowtyped] Enum (uniontype) not excaped properly
Created by: shfx
Description
When openapi contains a enum type for any of the attributes and this enum contains '
, enum union type is not escaped properly.
e.g.
export type CountriesHumanNameEnum = 'Andorra' | 'United Arab Emirates' | 'Afghanistan' | 'Antigua and Barbuda' | 'Anguilla' | 'Albania' | 'Armenia' |
'Cote d'Ivoire' | // <- Here
'Mayotte' | 'South Africa' | 'Zambia' | 'Zimbabwe';
openapi-generator version
3.1.1-SNAPSHOT
Command line used for generation
openapi-generator generate -i https://example.com/api.json -g javascript-flowtyped -o openapi/client
Steps to reproduce
- Generate client code
yarn
yarn run build
Suggest a fix/enhancement
Escape string union types generated by openapi-generator