Title / Description
Code { "$schema": "http://json-schema.org/draft/2019-09/schema", "$defs": { "TypeA": { "properties": { "propertyA": { "type": "number" } }, "required": [ "propertyA" ] }, "TypeB": { "allOf": [ { "$ref": "#/$defs/TypeA" }, { "type": "object", "properties": { "propertyB": { "type": "string" } }, "required": [ "propertyB" ] } ] } }, "$ref": "#/$defs/TypeB" }
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code