util.jsonschema: Implement 'dependentSchemas'

If this object key exists then this schema must validate against the
current object.  Seems useful.
This commit is contained in:
Kim Alvefur 2023-03-26 15:20:07 +02:00
parent 4bc62438db
commit 8c9ffa25eb
3 changed files with 18 additions and 1 deletions

View file

@ -19,7 +19,7 @@ local skip = {
["const.json:9"] = "deepcompare",
["contains.json:0:5"] = "distinguishing objects from arrays",
["defs.json"] = "need built-in meta-schema",
["dependentSchemas.json"] = "NYI",
["dependentSchemas.json:2:2"] = "NYI", -- minProperties
["dynamicRef.json"] = "NYI",
["enum.json:1:3"] = "deepcompare",
["id.json"] = "NYI",