{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "MyEnum", "anyOf": [ { "type": "string", "enum": [ "Included2" ] }, { "type": "object", "required": [ "Included1" ], "properties": { "Included1": { "type": "number", "format": "float" } } } ] }