[ { "description": "one property has format set in another property", "schema": { "properties": { "str": { "format": { "$data": "1/strFormat" } }, "strFormat": {} } }, "tests": [ { "description": "allowed unknown format is valid", "data": { "str": "any value", "strFormat": "allowedUnknown" }, "valid": true }, { "description": "unknown format is invalid", "data": { "str": "any value", "strFormat": "completelyUnknown" }, "valid": false }, { "description": "valid if the format is undefined", "data": { "str": "any value" }, "valid": true }, { "description": "fails if value of format is not a string", "data": { "str": "1963-06-19T08:30:06.283185Z", "strFormat": 1963 }, "valid": false } ] } ]