flowup / api-client-generator

Angular REST API client generator from Swagger YAML or JSON file with camel case settigs
MIT License
115 stars 21 forks source link

[enum] key should be used as enum property name instead of value #28

Closed vmasek closed 6 years ago

vmasek commented 6 years ago

Description / Key should be used as property name when generating enum from this yaml definition

    enum:
      - 1 #Pending
      - 2 #InProgress
      - 3 #Complete
    description: |
      - 1 Pending
      - 2 InProgress
      - 3 Complete