{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "definitions": {
        "MyEnum": {
            "enum": [
                0
            ],
            "type": "number"
        },
        "MyInterface": {
            "type": "object"
        },
        "MyObject": {
            "type": "object"
        }
    },
    "properties": {
        "MyEnum": {
            "$ref": "#/definitions/MyEnum"
        }
    },
    "required": [
        "MyEnum"
    ]
}