{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/acceldata/json-schema/acceldata-tag-response-proto-schema.json",
  "title": "TagResponseProto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/acceldata-tags-api-openapi.yml#/components/schemas/TagResponseProto",
  "type": "object",
  "properties": {
    "key": {
      "$ref": "#/$defs/TagKeyProto"
    },
    "values": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/TagValueProto"
      }
    }
  },
  "$defs": {
    "TagKeyProto": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "type": {
          "enum": [
            "UNSPECIFIED_TYPE",
            "GOVERNED",
            "USER"
          ],
          "type": "string",
          "format": "enum"
        },
        "description": {
          "type": "string"
        },
        "status": {
          "enum": [
            "UNSPECIFIED_STATUS",
            "ACTIVE",
            "RETIRED",
            "MERGED",
            "DELETED"
          ],
          "type": "string",
          "format": "enum"
        },
        "mergedIntoId": {
          "type": "string"
        },
        "createdBy": {
          "type": "string"
        },
        "updatedBy": {
          "type": "string"
        },
        "createdAt": {
          "type": "string"
        },
        "updatedAt": {
          "type": "string"
        },
        "tenantId": {
          "type": "string"
        }
      }
    },
    "TagValueProto": {
      "type": "object",
      "properties": {
        "keyValueId": {
          "type": "string"
        },
        "keyId": {
          "type": "string"
        },
        "value": {
          "type": "string"
        },
        "dataProtection": {
          "type": "boolean"
        },
        "status": {
          "enum": [
            "UNSPECIFIED_STATUS",
            "ACTIVE",
            "RETIRED",
            "MERGED",
            "DELETED"
          ],
          "type": "string",
          "format": "enum"
        },
        "mergedIntoId": {
          "type": "string"
        },
        "createdBy": {
          "type": "string"
        },
        "updatedBy": {
          "type": "string"
        },
        "createdAt": {
          "type": "string"
        },
        "updatedAt": {
          "type": "string"
        },
        "tenantId": {
          "type": "string"
        }
      }
    }
  }
}