Skip to content

Missing support for 'prefixItems' #529

@LightenedLimited

Description

@LightenedLimited

OpenAPI 3.1.0 supports 'prefixItems,' as it is fully compatible with JSON Schema 2020-12. 'prefixItems' is helpful for us to validate tuples, and several existing solutions already support this keyword (e.g., Swagger).

One example property we'd like support for is

"span": {
    "type": "array",
    "minItems": 2, 
    "maxItems": 2,
    "prefixItems": [
      {
        "type": "number",
        "description": "Starting index of the claim's span"
      },
      {
        "type": "number",
        "description": "Ending index of the claim's span"
      }
    ],
    "additionalItems": false
  }

Currently, it renders as any[].

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