{
    "id": "http://www.ubisoft.com/ugc/acd/v1/typedtarget#",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "description": "JSON Schema for Assassin's Creed Dynasty UGC",
    "Targets": {
        "type": "array",
        "minItems": 1,
        "items": {
            "$ref": "http://www.ubisoft.com/ugc/acd/v1/types#/RequiredString"
        }
    },
    "TypedTarget": {
        "type": "object",
        "oneOf": [
            {
                "properties": {
                    "Type": {
                        "type": "string",
                        "enum": [
                            "Entities"
                        ]
                    },
                    "Targets": {
                        "$ref": "#/Targets"
                    }
                },
                "required": [
                    "Type",
                    "Targets"
                ],
                "additionalProperties": false
            },
            {
                "properties": {
                    "Type": {
                        "type": "string",
                        "enum": [
                            "Descriptor"
                        ]
                    },
                    "Descriptor": {
                        "$ref": "http://www.ubisoft.com/ugc/acd/v1/gameobjectdescriptorfilter#/Descriptor"
                    }
                },
                "required": [
                    "Type",
                    "Descriptor"
                ],
                "additionalProperties": false
            }
        ]
    }
}