{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "type": "object",
    "title": "Brand Logo",
    "description": "Schema for brand logo metadata endpoint",
    "properties": {
        "id": {
            "type": "string",
            "description": "Unique logo identifier generated from brand name, logo filename, and UUID"
        },
        "slug": {
            "type": "string",
            "description": "URL-friendly identifier (same as id for logo resources)"
        },
        "brand_id": {
            "type": "string",
            "description": "The brand ID this logo belongs to"
        },
        "brand_name": {
            "type": "string",
            "description": "The name of the brand"
        },
        "filename": {
            "type": "string",
            "description": "Original logo filename (e.g., logo.jpg)",
            "pattern": "^logo\\.(png|jpg|svg)$"
        },
        "extension": {
            "type": "string",
            "description": "File extension of the logo",
            "enum": ["png", "jpg", "svg"]
        },
        "logo_file": {
            "type": "string",
            "description": "The generated logo filename in the API (e.g., {logo_id}.{ext})"
        }
    },
    "required": [
        "id",
        "slug",
        "brand_id",
        "brand_name",
        "filename",
        "extension",
        "logo_file"
    ],
    "additionalProperties": false
}
