Skip to content

Array conversion #325

Description

@jacopocarlini

I am this parameter in a request

 {
    "name" : "bundleType",
    "in" : "query",
    "description" : "Boundles's type",
    "required" : false,
    "style" : "form",
    "explode" : true,
    "schema" : {
      "type" : "string",
      "enum" : [ "GLOBAL", "PRIVATE", "PUBLIC" ]
    }
  }

the generated class is

// Request type definition
export type GetBundlesByPSPT = r.IGetApiRequestType<
  {
    readonly JWT: string;
    readonly limit?: number;
    readonly "bundle-type"?: array;
    readonly page?: number;
    readonly "psp-code": string;
    readonly name?: string;
  },
  "Authorization",
  never,
  r.IResponseType<200, Bundles, "X-Request-Id">
>;

I have a compile error due to the line readonly "bundle-type"?: array;

How I fixed it manually

readonly "bundle-type"?: Array<string>;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions