The home of JSON Schema validation right in your browser 🚧 Alpha 🚧 draft-7 only
Valid JSON:
xxxxxxxxxx{ "$schema": "http://json-schema.org/draft-07/schema#", "$id": "https://example.com/schema/2021/02/example.json", "description": "This schema demonstrates how VSCode's JSON schema mechanism fails with allOf used to extend a definition", "definitions": { "valueProvider": { "type": "object", "properties": { "example": { "type": "string" }, "alternative": { "type": "string" } }, "oneOf": [ { "required": [ "example" ] }, { "required": [ "alternative" ] } ] }, "selector": { "type": "object", "allOf": [ { "$ref": "#/definitions/valueProvider" }, { "required": [ "operator", "value" ], "properties": { "operator": { "type": "string", "enum": [ "IsNull", "Equals", "NotEquals", "Greater", "GreaterOrEquals", "Less", "LessOrEquals" ] }, "value": { "type": "string" } } } ] } }, "properties": { "show": { "properties": { "name": { "type": "string" }, "selector": { "description": "This property does not function correctly in VSCode", "$ref": "#/definitions/selector", "additionalProperties": false } }, "additionalProperties": false } }}Valid JSON:
xxxxxxxxxx{ "show": { "name": "a", "selector": { "example": "a", "operator": "IsNull", "value": "false", "d": "a" } }}jsonschema.dev@relequestual Thanks to Sponsors: ![]()