Skip to content

Supports minItems / maxItems #871

Closed
@kgtkr

Description

@kgtkr

example:

// minItems=undefined, maxItems=undefined
type A = X[];

// minItems=1, maxItems=undefined
type B = [X, ...X[]];

// minItems=1, maxItems=3;
type C = [X] | [X, X] | [X, X, X];

// minItems=undefined, maxItems=2;
type D = [] | [X] | [X, X];
  • Have to be careful about code sizes that are too large
  • The generated code is incompatible and should add an option
  • openapi-typescript can put an array in items, but not in openapi3.0

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