{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "avalon-core:subset-3.0",
    "description": "A container of instances",
    "type": "object",
    "additionalProperties": true,
    "required": [
        "schema",
        "type",
        "parent",
        "name",
        "data"
    ],
    "properties": {
        "schema": {
            "description": "The schema associated with this document",
            "type": "string",
            "enum": [
                "avalon-core:subset-3.0"
            ],
            "example": "avalon-core:subset-3.0"
        },
        "type": {
            "description": "The type of document",
            "type": "string",
            "enum": [
                "subset"
            ],
            "example": "subset"
        },
        "parent": {
            "description": "Unique identifier to parent document",
            "example": "592c33475f8c1b064c4d1696"
        },
        "name": {
            "description": "Name of directory",
            "type": "string",
            "pattern": "^[a-zA-Z0-9_.]*$",
            "example": "shot01"
        },
        "data": {
            "description": "Document metadata",
            "type": "object",
            "required": [
                "families"
            ],
            "properties": {
                "families": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    },
                    "description": "One or more families associated with this subset"
                }
            },
            "example": {
                "families": [
                    "avalon.camera"
                ],
                "frameStart": 1000,
                "frameEnd": 1201
            }
        }
    }
}