{
    "$schema": "http://json-schema.org/draft-04/schema",
    "description": "Trait that applies contains the content restrictions of an ANS object.",
    "properties": {
        "content_code": {
            "description": "The content restriction code/level/flag associated with the ANS object",
            "type": "string"
        },
        "embargo": {
            "additionalProperties": false,
            "description": "Embargo configuration to enforce publishing restrictions. Embargoed content must not go live.",
            "properties": {
                "active": {
                    "description": "The boolean flag to indicate if the embargo is active or not. If this field is false, ignore the embargo.",
                    "type": "boolean"
                },
                "description": {
                    "description": "An optional description for the embargo.",
                    "type": "string"
                },
                "end_time": {
                    "_format": "date-time",
                    "description": "An optional end time for the embargo to indicate when it ends. When it's not defined, it means the embargo keeps applying. The end time should be ignored if active flag is false.",
                    "type": "string"
                }
            },
            "required": [
                "active"
            ],
            "type": "object"
        },
        "geo": {
            "additionalProperties": false,
            "description": "Geo-Restriction configuration that contains the restriction ids that this content should be associated with.",
            "properties": {
                "restrictions": {
                    "description": "An array containing the geo-restriction objects. Limited to a size of 1 for now.",
                    "items": {
                        "additionalProperties": false,
                        "description": "An object specifying the _id of the restriction this content should be associated with.",
                        "properties": {
                            "restriction_id": {
                                "description": "The _id of the restriction that is stored in Global Settings.",
                                "type": "string"
                            }
                        },
                        "required": [
                            "restriction_id"
                        ],
                        "type": "object"
                    },
                    "maxItems": 1,
                    "minItems": 1,
                    "type": "array"
                }
            },
            "required": [
                "restrictions"
            ],
            "type": "object"
        }
    },
    "title": "Content Restrictions",
    "type": "object"
}