{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "id": "http://schema.doctorlogic.com/component/v1/tree.json#",
    "definitions": {},
    "additionalProperties": false,
    "properties": {
        "name": {
            "$ref": "component.json#/properties/name"
        },
        "type": {
            "$ref": "component.json#/properties/type"
        },
        "children": {
            "description": "A list of component trees.",
            "items": {
                "$ref": "#"
            },
            "type": "array"
        },
        "context": {
            "type": "object",
            "description": "The rendering context for the Component."
        },
        "config": {
            "description": "The configuration to override the database configuration.",
            "type": "object"
        },
        "additionalDependencies": {
            "description": "A list of absolute or relative URLs required for this Component instance. Relative paths will be resolved from the manifest file path.",
            "additionalProperties": true,
            "properties": {
                "scripts": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "styles": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                }
            },
            "type": "object"
        }
    },
    "required": [
        "name",
        "type"
    ],
    "type": "object"
}