{
    "title": "DatabaseCollection",
    "description": "A collection from a certain namespace",
    "oneOf": [
        {
            "type": "object",
            "description": "A collection from the given namespace",
            "properties": {
                "name": {
                    "type": "string",
                    "pattern": "^[a-zA-Z0-9_\\.]+$",
                    "minLength": 2
                },
                "namespace": {
                    "type": "string",
                    "pattern": "^[a-zA-Z0-9_\\.]+$"
                }
            },
            "required": [
                "name",
                "namespace"
            ],
            "additionalProperties": false
        },
        {
            "type": "string",
            "description": "A collection from the default namespace",
            "pattern": "^[a-zA-Z0-9_\\.~]+$"
        }
    ]
}