{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/collate/json-schema/collate-recognizer-feedback-schema.json",
  "title": "RecognizerFeedback",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/collate-classifications-api-openapi.yml#/components/schemas/RecognizerFeedback",
  "required": [
    "entityLink",
    "feedbackType",
    "tagFQN"
  ],
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "entityLink": {
      "pattern": "(?U)^<#E::\\w+::(?:[^:<>|]|:[^:<>|])+(?:::(?:[^:<>|]|:[^:<>|])+)*>$",
      "type": "string"
    },
    "tagFQN": {
      "maxLength": 3072,
      "minLength": 1,
      "type": "string"
    },
    "feedbackType": {
      "type": "string",
      "enum": [
        "FALSE_POSITIVE",
        "INCORRECT_CLASSIFICATION",
        "OVERLY_BROAD",
        "CONTEXT_SPECIFIC"
      ]
    },
    "userReason": {
      "type": "string",
      "enum": [
        "NOT_SENSITIVE_DATA",
        "WRONG_DATA_TYPE",
        "INTERNAL_IDENTIFIER",
        "PUBLIC_INFORMATION",
        "TEST_DATA",
        "ENCRYPTED_DATA",
        "OTHER"
      ]
    },
    "userComments": {
      "type": "string"
    },
    "suggestedTag": {
      "maxLength": 3072,
      "minLength": 1,
      "type": "string"
    },
    "sampleValues": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "recognizerInfo": {
      "$ref": "#/$defs/RecognizerInfo"
    },
    "createdBy": {
      "$ref": "#/$defs/EntityReference"
    },
    "createdAt": {
      "type": "integer",
      "format": "int64"
    },
    "status": {
      "type": "string",
      "enum": [
        "PENDING",
        "REVIEWED",
        "APPLIED",
        "REJECTED"
      ]
    },
    "resolution": {
      "$ref": "#/$defs/Resolution"
    }
  },
  "$defs": {
    "EntityReference": {
      "required": [
        "id",
        "type"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "type": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "fullyQualifiedName": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "displayName": {
          "type": "string"
        },
        "deleted": {
          "type": "boolean"
        },
        "inherited": {
          "type": "boolean"
        },
        "href": {
          "type": "string",
          "format": "uri"
        }
      }
    },
    "RecognizerInfo": {
      "type": "object",
      "properties": {
        "recognizerId": {
          "type": "string",
          "format": "uuid"
        },
        "recognizerName": {
          "type": "string"
        },
        "matchPattern": {
          "type": "string"
        },
        "confidenceScore": {
          "type": "number",
          "format": "double"
        }
      }
    },
    "Resolution": {
      "type": "object",
      "properties": {
        "action": {
          "type": "string",
          "enum": [
            "ADDED_TO_EXCEPTION_LIST",
            "PATTERN_ADJUSTED",
            "THRESHOLD_INCREASED",
            "RECOGNIZER_DISABLED_FOR_ENTITY",
            "NO_ACTION_NEEDED"
          ]
        },
        "resolvedBy": {
          "$ref": "#/$defs/EntityReference"
        },
        "resolvedAt": {
          "type": "integer",
          "format": "int64"
        },
        "resolutionNotes": {
          "type": "string"
        }
      }
    }
  }
}