{
    "id": "http://www.ubisoft.com/ugc/acd/v1/quest/items#",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "description": "JSON Schema for Assassin's Creed Dynasty UGC",
    "type": "object",
    "properties": {
        "Schema": {
            "type": "string",
            "enum": [
                "http://www.ubisoft.com/ugc/acd/v1/quest/items#"
            ]
        },
        "Items": {
            "type": "array",
            "minItems": 1,
            "items": {
                "oneOf": [
                    {
                        "type": "object",
                        "properties": {
                            "ID": {
                                "$ref": "http://www.ubisoft.com/ugc/acd/v1/types#/RequiredString"
                            },
                            "Type": {
                                "type": "string",
                                "enum": [
                                    "Type_Item"
                                ]
                            },
                            "Item": {
                                "$ref": "http://www.ubisoft.com/ugc/acd/v1/types#/ObjectId"
                            }
                        },
                        "required": [
                            "ID",
                            "Type",
                            "Item"
                        ],
                        "additionalProperties": false 
                    },
                    {
                        "type": "object",
                        "properties": {
                            "ID": {
                                "$ref": "http://www.ubisoft.com/ugc/acd/v1/types#/RequiredString"
                            },
                            "Type": {
                                "type": "string",
                                "enum": [
                                    "Type_Categorization"
                                ]
                            },
                            "Category": {
                                "$ref": "http://www.ubisoft.com/ugc/acd/v1/types#/RequiredString"
                            },
                            "SubCategorization": {
                                "type": "array",
                                "minItems": 1,
                                "items": {
                                    "$ref": "http://www.ubisoft.com/ugc/acd/v1/types#/RequiredString"
                                }
                            }
                        },
                        "required": [
                            "ID",
                            "Type",
                            "Category"
                        ],
                        "additionalProperties": false 
                    }
                ]
            }
        },
        "CustomQuestItems": {
            "type": "array",
            "minItems": 1,
            "items": {
                "type": "object",
                "properties": {
                    "InventoryItemSettings": {
                        "$ref": "http://www.ubisoft.com/ugc/acd/v1/types#/ObjectId"
                    },
                    "Description": {
                        "$ref": "http://www.ubisoft.com/ugc/acd/v1/types#/RequiredString"
                    },
                    "Name": {
                        "$ref": "http://www.ubisoft.com/ugc/acd/v1/types#/RequiredString"
                    },
                    "ID": {
                        "$ref": "http://www.ubisoft.com/ugc/acd/v1/types#/RequiredString"
                    }
                },
                "required": [
                    "InventoryItemSettings",
                    "Description",
                    "Name",
                    "ID"
                ],
                "additionalProperties": false
            }
        }
    },
    "additionalProperties": false,
    "required": [
        "Items",
        "Schema"
    ]
}