{
    "anyOf": [
        {
            "properties": {
                "foo": {
                    "type": "string",
                    "const": "abc"
                },
                "bar": {
                    "type": "string",
                    "const": "abc"
                }
            },
            "required": [
                "foo",
                "bar"
            ]
        },
        {
            "properties": {
                "bar": {
                    "type": "string",
                    "const": "def"
                }
            },
            "required": [
                "foo"
            ]
        }
    ]
}