{
    "id": "http://www.ubisoft.com/ugc/acd/v1/quest/entitytemplate#",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "description": "JSON Schema for Assassin's Creed Dynasty UGC",
    "type": "object",
    "properties": {
        "Template": {
            "oneOf": [
                {
                    "$ref": "http://www.ubisoft.com/ugc/acd/v1/types#/RequiredString"
                },
                {
                    "$ref": "http://www.ubisoft.com/ugc/acd/v1/types#/ObjectId"
                }
            ]
        },
        "Position": {
            "$ref": "http://www.ubisoft.com/ugc/acd/v1/types#/Vector3"
        },
        "Clue": {
            "$ref": "http://www.ubisoft.com/ugc/acd/v1/types#/RequiredString"
        },
        "Active": {
            "type": "boolean"
        },
        "TriggerZone": {
            "oneOf": [
                {
                    "type": "object",
                    "Type": {
                        "type": "string",
                        "enum": [
                            "Box"
                        ]
                    },
                    "Size": {
                        "$ref": "http://www.ubisoft.com/ugc/acd/v1/types#/Vector3"
                    },
                    "required": [
                        "Type",
                        "Size"
                    ],
                    "additionalProperties": false
                },
                {
                    "type": "object",
                    "Type": {
                        "type": "string",
                        "enum": [
                            "Sphere"
                        ]
                    },
                    "Radius": {
                        "type": "number",
                        "minimum": 0,
                        "exclusiveMinimum": true
                    },
                    "required": [
                        "Type",
                        "Radius"
                    ],
                    "additionalProperties": false
                }
            ]
        },
        "InteractMessage": {
            "type": "object",
            "properties": {
                "Title": {
                    "$ref": "http://www.ubisoft.com/ugc/acd/v1/types#/RequiredString"
                },
                "Message": {
                    "$ref": "http://www.ubisoft.com/ugc/acd/v1/types#/RequiredString"
                }
            },
            "required": [
                "Title",
                "Message"
            ],
            "additionalProperties": false
        }
    },
    "required": [
        "Template",
        "Position"
    ],
    "additionalProperties": false
}