{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "id": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.3/traits/trait_content_restrictions.json",
    "title": "Content Restrictions",
    "description": "Trait that applies contains the content restrictions of an ANS object.",
    "type": "object",
    "properties": {
        "content_code": {
            "type": "string",
            "description": "The content restriction code/level/flag associated with the ANS object"
        },
        "embargo": {
            "description": "Embargo configuration to enforce publishing restrictions. Embargoed content must not go live.",
            "type": "object",
            "additionalProperties": false,
            "properties": {
                "active": {
                    "type": "boolean",
                    "description": "The boolean flag to indicate if the embargo is active or not. If this field is false, ignore the embargo."
                },
                "end_time": {
                    "type": "string",
                    "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."
                },
                "description": {
                    "description": "An optional description for the embargo.",
                    "type": "string"
                }
            },
            "required": [
                "active"
            ]
        }
    }
}