{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "id": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.5.3/traits/trait_planning.json",
    "title": "Scheduling information",
    "description": "Trait that applies planning information to a document or resource.",
    "type": "object",
    "properties": {
        "planning": {
            "description": "Planning information.",
            "type": "object",
            "properties": {
                "scheduling": {
                    "description": "Scheduling information.",
                    "type": "object",
                    "properties": {
                        "planned_publish_date": {
                            "type": "string",
                            "format": "date-time",
                            "description": "When the content is planned to be published."
                        },
                        "scheduled_publish_date": {
                            "type": "string",
                            "format": "date-time",
                            "description": "When the content was first published."
                        },
                        "will_have_gallery": {
                            "description": "Will this content have galleries?",
                            "type": "boolean"
                        },
                        "will_have_graphic": {
                            "description": "Will this content have graphics?",
                            "type": "boolean"
                        },
                        "will_have_image": {
                            "description": "Will this content have images?",
                            "type": "boolean"
                        },
                        "will_have_video": {
                            "description": "Will this content have videos?",
                            "type": "boolean"
                        }
                    }
                },
                "story_length": {
                    "description": "Story length information.",
                    "type": "object",
                    "properties": {
                        "word_count_planned": {
                            "description": "The anticipated number of words in the story.",
                            "type": "integer"
                        },
                        "word_count_actual": {
                            "description": "Current number of words.",
                            "type": "integer"
                        },
                        "inch_count_planned": {
                            "description": "The anticipated length of the story in inches.",
                            "type": "integer"
                        },
                        "inch_count_actual": {
                            "description": "The current length of the story in inches.",
                            "type": "integer"
                        }
                    }
                }
            }
        }
    }
}