{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "Internal", "anyOf": [ { "type": "object", "required": [ "typeProperty" ], "properties": { "typeProperty": { "type": "string", "enum": [ "UnitOne" ] } } }, { "type": "object", "required": [ "typeProperty" ], "properties": { "typeProperty": { "type": "string", "enum": [ "StringMap" ] } }, "additionalProperties": { "type": "string" } }, { "type": "object", "required": [ "typeProperty" ], "properties": { "typeProperty": { "type": "string", "enum": [ "UnitStructNewType" ] } } }, { "type": "object", "required": [ "bar", "foo", "typeProperty" ], "properties": { "typeProperty": { "type": "string", "enum": [ "StructNewType" ] }, "foo": { "type": "integer", "format": "int32" }, "bar": { "type": "boolean" } } }, { "type": "object", "required": [ "bar", "foo", "typeProperty" ], "properties": { "typeProperty": { "type": "string", "enum": [ "Struct" ] }, "foo": { "type": "integer", "format": "int32" }, "bar": { "type": "boolean" } } }, { "type": "object", "required": [ "typeProperty" ], "properties": { "typeProperty": { "type": "string", "enum": [ "UnitTwo" ] } } }, { "type": [ "object", "integer" ], "format": "int32", "required": [ "typeProperty" ], "properties": { "typeProperty": { "type": "string", "enum": [ "WithInt" ] } } } ] }