Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing support for 'prefixItems' #529

Open
LightenedLimited opened this issue Feb 14, 2025 · 0 comments
Open

Missing support for 'prefixItems' #529

LightenedLimited opened this issue Feb 14, 2025 · 0 comments

Comments

@LightenedLimited
Copy link

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[].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant