{
    "$schema": "http://json-schema.org/draft-04/schema",
    "allOf": [
        {
            "properties": {
                "body": {
                    "$ref": "#/definitions/https:__raw_githubusercontent_com_washingtonpost_ans-schema_master_src_main_resources_schema_ans_0_10_9_traits_trait_platform_pitch_json",
                    "description": "The object being inserted/updated"
                },
                "date": {
                    "_format": "date-time",
                    "description": "When the operation should be considered performed",
                    "type": "string"
                },
                "id": {
                    "description": "The id of the item being operated",
                    "type": "string"
                },
                "operation": {
                    "description": "The identifier of the operation being performed",
                    "enum": [
                        "create",
                        "update"
                    ],
                    "type": "string"
                },
                "organization_id": {
                    "description": "The id of the organization",
                    "type": "string"
                },
                "type": {
                    "description": "Identifies this as an ANS operation",
                    "enum": [
                        "platform-pitch-operation"
                    ],
                    "type": "string"
                },
                "version": {
                    "description": "The version of ANS this item is written in",
                    "type": "string"
                }
            },
            "required": [
                "type",
                "operation",
                "id",
                "organization_id",
                "body"
            ]
        }
    ],
    "definitions": {
        "https:__raw_githubusercontent_com_washingtonpost_ans-schema_master_src_main_resources_schema_ans_0_10_9_traits_trait_additional_properties_json": {
            "$schema": "http://json-schema.org/draft-04/schema#",
            "additionalProperties": {},
            "description": "A grab-bag object for non-validatable data.",
            "title": "Has additional properties",
            "type": "object"
        },
        "https:__raw_githubusercontent_com_washingtonpost_ans-schema_master_src_main_resources_schema_ans_0_10_9_traits_trait_platform_pitch_event_json": {
            "$schema": "http://json-schema.org/draft-04/schema#",
            "additionalProperties": false,
            "description": "Trait that represents an update event for a pitch to a platform. In the Arc ecosystem, this data is generated by WebSked.",
            "properties": {
                "additional_properties": {
                    "$ref": "#/definitions/https:__raw_githubusercontent_com_washingtonpost_ans-schema_master_src_main_resources_schema_ans_0_10_9_traits_trait_additional_properties_json"
                },
                "note": {
                    "description": "Optional note associated with this update.",
                    "type": "string"
                },
                "status": {
                    "description": "The current status of the pitch.",
                    "pattern": "^([a-z]|[ ])*$",
                    "type": "string"
                },
                "time": {
                    "_format": "date-time",
                    "description": "The time of this update.",
                    "type": "string"
                },
                "user_id": {
                    "description": "The ID of the user who made this update.",
                    "type": "string"
                }
            },
            "title": "Platform pitch event",
            "type": "object"
        },
        "https:__raw_githubusercontent_com_washingtonpost_ans-schema_master_src_main_resources_schema_ans_0_10_9_traits_trait_platform_pitch_json": {
            "$schema": "http://json-schema.org/draft-04/schema#",
            "additionalProperties": false,
            "description": "Trait that represents a pitch to a platform. In the Arc ecosystem, this data is generated by WebSked.",
            "properties": {
                "additional_properties": {
                    "$ref": "#/definitions/https:__raw_githubusercontent_com_washingtonpost_ans-schema_master_src_main_resources_schema_ans_0_10_9_traits_trait_additional_properties_json"
                },
                "creation_event": {
                    "$ref": "#/definitions/https:__raw_githubusercontent_com_washingtonpost_ans-schema_master_src_main_resources_schema_ans_0_10_9_traits_trait_platform_pitch_event_json"
                },
                "latest_event": {
                    "$ref": "#/definitions/https:__raw_githubusercontent_com_washingtonpost_ans-schema_master_src_main_resources_schema_ans_0_10_9_traits_trait_platform_pitch_event_json"
                },
                "platform_path": {
                    "description": "The path of the platform that this pitch targets.",
                    "type": "string"
                }
            },
            "title": "Platform pitch",
            "type": "object"
        }
    },
    "description": "An operation to add or update a story's pitch to a WebSked platform.",
    "type": "object"
}