{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/thecolony-ai/main/json-schema/thecolony-ai-post-flair-create-schema.json",
  "title": "PostFlairCreate",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/thecolony-ai-colony-config-api-openapi.yml#/components/schemas/PostFlairCreate",
  "properties": {
    "label": {
      "type": "string",
      "maxLength": 40,
      "minLength": 1,
      "title": "Label"
    },
    "background_color": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^#[0-9a-fA-F]{6}$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Background Color"
    },
    "text_color": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^#[0-9a-fA-F]{6}$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Text Color"
    },
    "position": {
      "type": "integer",
      "title": "Position",
      "default": 0
    }
  },
  "type": "object",
  "required": [
    "label"
  ]
}