{
    "$schema": "http://json-schema.org/draft-04/schema#",

    "title": "pype:workfile-1.0",
    "description": "Workfile additional information.",

    "type": "object",

    "additionalProperties": true,

    "required": [
        "schema",
        "type",
        "filename",
        "task_name",
        "parent"
    ],

    "properties": {
        "schema": {
            "description": "Schema identifier for payload",
            "type": "string",
            "enum": ["pype:workfile-1.0"],
            "example": "pype:workfile-1.0"
        },
        "type": {
            "description": "The type of document",
            "type": "string",
            "enum": ["workfile"],
            "example": "workfile"
        },
        "parent": {
            "description": "Unique identifier to parent document",
            "example": "592c33475f8c1b064c4d1696"
        },
        "filename": {
            "description": "Workfile's filename",
            "type": "string",
            "example": "kuba_each_case_Alpaca_01_animation_v001.ma"
        },
        "task_name": {
            "description": "Task name",
            "type": "string",
            "example": "animation"
        },
        "data": {
            "description": "Document metadata",
            "type": "object",
            "example": {"key": "value"}
        }
    }
}
