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

Support "prefixItems", changes to "items" #125

Open
charjr opened this issue Apr 19, 2023 · 0 comments
Open

Support "prefixItems", changes to "items" #125

charjr opened this issue Apr 19, 2023 · 0 comments
Labels
Blocked by external dependency Must be solved in underlying library or by using a different library
Milestone

Comments

@charjr
Copy link
Collaborator

charjr commented Apr 19, 2023

OAS 3.1 adds prefixItems, it changes items.

prefixItems takes a list of schemas. The index of the schema corresponds to the index of the item in the array that it will validate. i.e. the first schema validates the first item.

items now takes a bool or a schema, this dictates validation of any items unspecified in prefixItems.

Useful links:
https://json-schema.org/understanding-json-schema/reference/array.html#tuple-validation
https://json-schema.org/understanding-json-schema/reference/array.html#additional-items

@charjr charjr added this to the OAPI 3.1 milestone Apr 19, 2023
@charjr charjr changed the title Support "prefixItems" Support "prefixItems", changes to "items" and "additionalItems" Apr 19, 2023
@charjr charjr changed the title Support "prefixItems", changes to "items" and "additionalItems" Support "prefixItems", changes to "items" and removal of "additionalItems" Apr 19, 2023
@charjr charjr changed the title Support "prefixItems", changes to "items" and removal of "additionalItems" Support "prefixItems", changes to "items" Apr 19, 2023
@charjr charjr added the Blocked by external dependency Must be solved in underlying library or by using a different library label Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Blocked by external dependency Must be solved in underlying library or by using a different library
Projects
None yet
Development

No branches or pull requests

1 participant