{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "Tag Schema",
    "description": "The Tag Archetype - Essential properties that define a Tag",
    "type": "object",
    "additionalProperties": false,
    "required": [
        "tag",
        "archetype"
    ],
    "properties": {
        "_id": {
            "type": "string",
            "description": "Unique identifier for this archetype record",
            "maxLength": 50,
            "default": ""
        },
        "_sid": {
            "type": "string",
            "description": "Unique short identifier for this archetype record",
            "maxLength": 50,
            "default": ""
        },
        "servant_id": {
            "type": "string",
            "description": "The servant to whom this record belongs",
            "maxLength": 50,
            "default": ""
        },
        "state": {
            "type": "string",
            "enum": [
                "draft",
                "public",
                "private",
                "deleted"
            ],
            "description": "Indicates this archetype record's state",
            "default": "draft"
        },
        "created": {
            "type": "string",
            "description": "Date and time this archetype record was created in ISO 8601 date standard e.g. YYYY-MM-DDThh:mm:ss.sTZD",
            "format": "date-time",
            "default": ""
        },
        "updated": {
            "type": "string",
            "description": "Date and time this archetype record was updated in ISO 8601 date standard e.g. YYYY-MM-DDThh:mm:ss.sTZD",
            "format": "date-time",
            "default": ""
        },
        "tag": {
            "type": "string",
            "description": "The text of the tag entry",
            "maxLength": 140,
            "default": ""
        },
        "archetype": {
            "type": "string",
            "enum": [
                "product",
                "article",
                "contact",
                "image",
                "tag",
                "tinytext"
            ],
            "description": "The archetype this tag is for",
            "default": "contact"
        }
    }
}