{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bugbug-io/json-schema/bugbug-io-v2-tag-create-update-schema.json",
  "title": "V2TagCreateUpdate",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bugbug-io-tags-api-openapi.yml#/components/schemas/V2TagCreateUpdate",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Tag names cannot contain commas or control characters.",
      "maxLength": 64
    },
    "color": {
      "type": "string",
      "pattern": "^#[0-9A-Fa-f]{6}$",
      "maxLength": 7
    }
  },
  "required": [
    "name"
  ]
}