{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/emporix/main/json-schema/emporix-brands-schema.json",
  "title": "Collection of Brands",
  "x-generated": "2026-10-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/emporix-brand-service-openapi.yml#/components/schemas/brands",
  "type": "array",
  "items": {
    "$ref": "#/$defs/brandResponse"
  },
  "$defs": {
    "brandResponse": {
      "title": "Brand Response",
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Brand name."
        },
        "cloudinaryUrl": {
          "type": "string",
          "description": "Id of the associated media file."
        },
        "description": {
          "type": "string",
          "description": "Brand description."
        },
        "localizedName": {
          "type": "object",
          "description": "Map of key-value pairs containing localized names of the brand.",
          "additionalProperties": {
            "type": "string"
          }
        },
        "localizedDescription": {
          "type": "object",
          "description": "Map of key-value pairs containing localized descriptions of the brand.",
          "additionalProperties": {
            "type": "string"
          }
        },
        "image": {
          "type": "string",
          "description": "Link to the associated media file."
        },
        "mediaId": {
          "type": "string",
          "description": "Id of the media."
        },
        "id": {
          "type": "string",
          "description": "Unique identifier of a brand."
        },
        "metadata": {
          "$ref": "#/$defs/metaData"
        }
      }
    },
    "metaData": {
      "title": "Metadata",
      "type": "object",
      "properties": {
        "createdAt": {
          "type": "string",
          "description": "Date and time when the object was created compliant with the ISO 8601 standard."
        },
        "modifiedAt": {
          "type": "string",
          "description": "Date and time when the object was last modified compliant with the ISO 8601 standard."
        },
        "version": {
          "minimum": 1,
          "type": "integer",
          "description": "Object version."
        }
      }
    }
  }
}