{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/usebondery-com/json-schema/usebondery-com-tag-schema.json",
  "title": "Tag",
  "description": "Tag read model",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/usebondery-com-openapi.yaml#/components/schemas/Tag",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier"
    },
    "userId": {
      "type": "string",
      "description": "Owner account identifier"
    },
    "color": {
      "description": "Hex color used for the tag chip",
      "type": [
        "string",
        "null"
      ]
    },
    "label": {
      "type": "string",
      "description": "Tag name"
    },
    "createdAt": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,9})?(?:Z|[+-]\\d{2}:\\d{2})$",
      "description": "Creation time as ISO 8601 with timezone offset"
    },
    "updatedAt": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,9})?(?:Z|[+-]\\d{2}:\\d{2})$",
      "description": "Last update time as ISO 8601 with timezone offset"
    }
  },
  "required": [
    "id",
    "userId",
    "color",
    "label",
    "createdAt",
    "updatedAt"
  ],
  "additionalProperties": false
}