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

Merge overlapping items subschemas #58

Closed
Zac-HD opened this issue Jul 12, 2020 · 0 comments
Closed

Merge overlapping items subschemas #58

Zac-HD opened this issue Jul 12, 2020 · 0 comments

Comments

@Zac-HD
Copy link
Member

Zac-HD commented Jul 12, 2020

In hypothesis_jsonschema._canonicalise.merged(), we should calculate the intersection of items schemas.

This is complicated somewhat by the possibility that one or both schemas to merge may have a list-of-items-schemas and an additionalItems schema, or a single schema for all items. Fortunately we have analogous logic for object properties, so it's more fiddly than conceptually challenging.

@Zac-HD Zac-HD closed this as completed in 45eae99 Jul 17, 2020
Zac-HD added a commit that referenced this issue Jul 17, 2020
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