
{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id": "tags",
    "title": "tags",
    "description": "Base tags definitions",
    "definitions": {
        "tag": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
                "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 191,
                    "pattern": "^([^,]|$)"
                },
                "slug": {
                    "type": ["string", "null"],
                    "maxLength": 191
                },
                "description": {
                    "type": ["string", "null"],
                    "maxLength": 500
                },
                "feature_image": {
                    "type": ["string", "null"],
                    "format": "uri-reference",
                    "maxLength": 2000
                },
                "visibility": {
                    "type": "string",
                    "enum": ["public", "internal"]
                },
                "meta_title": {
                    "type": ["string", "null"],
                    "maxLength": 300
                },
                "meta_description": {
                    "type": ["string", "null"],
                    "maxLength": 500
                },
                "id": {
                    "strip": true
                },
                "parent": {
                    "strip": true
                },
                "parent_id": {
                    "strip": true
                },
                "created_at": {
                    "strip": true
                },
                "created_by": {
                    "strip": true
                },
                "updated_at": {
                    "strip": true
                },
                "updated_by": {
                    "strip": true
                },
                "url": {
                    "strip": true
                }
            }
        }
    }
}
