{
    "id": "http://www.ubisoft.com/ugc/acd/v1/worldstate#",
    "$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/worldstate#"
            ]
        },
        "Preset": {
            "type": "string"
        },
        "EphemeralStations": {
            "type": "array",
            "minItems": 1,
            "items": {
                "type": "object",
                "properties": {
                    "Host": {
                        "$ref": "http://www.ubisoft.com/ugc/acd/v1/types#ObjectId"
                    },
                    "Layout": {
                        "$ref": "http://www.ubisoft.com/ugc/acd/v1/types#ObjectId"
                    },
                    "Persistent": {
                        "type":  "boolean"
                    }
                },
                "required": [
                    "Host",
                    "Layout"
                ],
                "additionalProperties": false
            }
        },
        "WorldNations": {
            "type": "array",
            "minItems": 1,
            "items": {
                "type": "object",
                "properties": {
                    "Faction": {
                        "$ref": "http://www.ubisoft.com/ugc/acd/v1/types#ObjectId"
                    },
                    "Nation": {
                        "$ref": "http://www.ubisoft.com/ugc/acd/v1/types#ObjectId"
                    }
                },
                "required": [
                    "Faction",
                    "Nation"
                ],
                "additionalProperties": false
            }
        }
    },
    "additionalProperties": false
}