{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "__version": 1,
    "description": "Tenant of a running application.",
    "id": "http://schlothauer.de/schemas/shared/tenant.json",
    "properties": {
        "active": {
            "__tags": [
                "notNull",
                "defaultTrue"
            ],
            "description": "is this entry still active",
            "type": "boolean"
        },
        "description": {
            "description": "some words to explain",
            "type": "string"
        },
        "guid": {
            "__tags": [
                "notDisplayed",
                "notNull"
            ],
            "_format": "uuid",
            "description": "global identifier",
            "type": "string"
        },
        "name": {
            "__tags": [
                "notNull",
                "unique"
            ],
            "description": "Tenant name",
            "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$",
            "type": "string"
        }
    },
    "required": [
        "name",
        "guid"
    ],
    "type": "object"
}