{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/canopyservicing-com/json-schema/canopyservicing-com-tag-schema-schema.json",
  "title": "TagSchema",
  "description": "Base response schema for surfacing tag information to the user.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/canopyservicing-com-account-user-tags-api-openapi.yml#/components/schemas/TagSchema",
  "properties": {
    "tag_id": {
      "type": "integer",
      "title": "Tag Id",
      "description": "The unique identifier of the tag"
    },
    "label": {
      "type": "string",
      "title": "Label",
      "description": "The label of the tag"
    },
    "description": {
      "type": "string",
      "title": "Description",
      "description": "The description of the tag"
    },
    "color": {
      "$ref": "#/$defs/TagColor",
      "description": "The color of the tag"
    },
    "active": {
      "type": "boolean",
      "title": "Active",
      "description": "The active status of the tag"
    }
  },
  "type": "object",
  "required": [
    "label",
    "description",
    "color"
  ],
  "$defs": {
    "TagColor": {
      "type": "string",
      "enum": [
        "red",
        "orange",
        "yellow",
        "green",
        "blue",
        "purple",
        "pink",
        "sky",
        "teal",
        "gray",
        "black"
      ],
      "title": "TagColor",
      "description": "Enum for the colors of tags."
    }
  }
}