Skip to content

Enum doesn't have quotation in it's definition #1037

Open
@mahdi-openup

Description

@mahdi-openup

Hi
I tried to run the cli without any additional arguments and with this swagger:

{
"schemas":{
  "Models_ConsultStatus": {
        "enum": [
          "Scheduled",
          "CancelledByClient",
          "CancelledByOpenUp",
          "Completed",
          "MissedByClient",
          "MissedByOpenUp",
          "MissedByBoth"
        ],
        "type": "integer",
        "format": "int32"
      }
}

but I get this enum definition that lac quotation chars:

/** @format int32 */
export enum ModelsConsultStatus {
  Scheduled = Scheduled,
  CancelledByClient = CancelledByClient,
  CancelledByOpenUp = CancelledByOpenUp,
  Completed = Completed,
  MissedByClient = MissedByClient,
  MissedByOpenUp = MissedByOpenUp,
  MissedByBoth = MissedByBoth,
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions