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

No support for dependentRequired #75

Open
AntoineAugusti opened this issue Apr 28, 2022 · 2 comments
Open

No support for dependentRequired #75

AntoineAugusti opened this issue Apr 28, 2022 · 2 comments

Comments

@AntoineAugusti
Copy link

AntoineAugusti commented Apr 28, 2022

Hello,

First, thanks a lot for providing this library! We @ https://transport.data.gouv.fr are happy to use it daily in production.

Opening an issue to note that dependentRequired (conditionally requires that certain properties must be present if a given property is present in an object) is not checked by the current version of this library and we got surprised by this.

It may be because you need to support newer versions of the spec, as discussed in #73.

@AntoineAugusti
Copy link
Author

In the 2019-09 release notes https://json-schema.org/draft/2019-09/release-notes.html#semi-incompatible-changes

dependencies has been split into dependentSchemas and dependentRequired

@jonasschmidt
Copy link
Owner

Hey, the support for dependentRequired was added in the 2019-09 schema draft (see release notes here: https://json-schema.org/draft/2019-09/release-notes.html). You already found the issue about adding support for the 2019-09 and 2020-12 drafts. Unfortunately it's not there yet and could take a bit of time to finish. Sorry I don't have better news 😬

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

2 participants