{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/autoposting-ai/json-schema/autoposting-ai-brand-schema.json",
  "title": "Brand",
  "description": "A brand maps to a set of social media accounts.",
  "x-generated": "2026-11-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/autoposting-ai-openapi.json#/components/schemas/Brand",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "slug": {
      "type": "string"
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "logoUrl": {
      "type": [
        "string",
        "null"
      ],
      "description": "URL to the brand's logo image."
    },
    "order": {
      "type": "integer",
      "description": "Display order of the brand."
    },
    "connectedPlatforms": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Social platforms connected to this brand."
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time"
    }
  }
}