Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Issues
  • #514
Closed
Open
Issue created Jul 09, 2018 by Administrator@rootContributor

[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
  1. Generate client code
  2. yarn
  3. yarn run build
Suggest a fix/enhancement

Escape string union types generated by openapi-generator

Assignee
Assign to
Time tracking