ExodusMovement / schemasafe

A reasonably safe JSON Schema validator with draft-04/06/07/2019-09/2020-12 support.
https://npmjs.com/@exodus/schemasafe
MIT License
161 stars 12 forks source link

Add dependentSchemas support from draft2019-09 #97

Closed ChALkeR closed 4 years ago

ChALkeR commented 4 years ago

dependentSchemas and dependentRequired behave like two branches of dependencies from pre-draft2019-09 spec versions.

Also add a check that dependentRequired entries are not schemas but are arrays.

Most changes are whitespace due to extra indentation level.

We might want to push draft2019-09 due to unevaluatedProperties, which will make things easier if implemented.