Skip to content

Should items be split like dependencies was? #866

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

Closed
gregsdennis opened this issue Feb 29, 2020 · 1 comment
Closed

Should items be split like dependencies was? #866

gregsdennis opened this issue Feb 29, 2020 · 1 comment

Comments

@gregsdennis
Copy link
Member

For draft 2019-09, we split the dependencies keyword because it had two different behaviors based on its content.

Similarly, items can have two different behaviors (although similar) based on its content. A schema content requires validation of all items, whereas an array of schemas validates items in sequence.

Based on this comment the array form was introduced to support tuples, which JSON doesn't natively support.

This may (or may not) make things simpler.

Discuss! 😁

@gregsdennis
Copy link
Member Author

Hmm... Apparently I'm too slow

#864

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