1[ 2 { 3 "description": "object properties validation with required", 4 "schema": { 5 "$schema": "https://json-schema.org/draft/2019-09/schema", 6 "properties": { 7 "foo": {"type": "integer"}, 8 "bar": {"type": "string"}, 9 "hello": {"type": "string"}, 10 "world": {"type": "string"} 11 }, 12 "required": [ "bar", "hello", "world" ] 13 }, 14 "tests": [ 15 { 16 "description": "required hello and world is not present", 17 "data": {"foo": 1, "bar": "baz"}, 18 "valid": false 19 }, 20 { 21 "description": "one property invalid is invalid", 22 "data": {"foo": 1, "bar": {}, "hello": "v", "world": "b"}, 23 "valid": false 24 }, 25 { 26 "description": "all valid", 27 "data": {"foo": 1, "bar": "b", "hello": "c", "world": "d"}, 28 "valid": true 29 } 30 ] 31 } 32] 33