{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-codeguru-profiler/refs/heads/main/json-schema/amazon-codeguru-profiler-user-feedback-schema.json",
  "title": "UserFeedback",
  "description": "Feedback that can be submitted for each instance of an anomaly by the user. Feedback is be used for improvements in generating recommendations for the application.",
  "type": "object",
  "properties": {
    "type": {
      "allOf": [
        {
          "$ref": "#/components/schemas/FeedbackType"
        },
        {
          "description": "Optional <code>Positive</code> or <code>Negative</code> feedback submitted by the user about whether the recommendation is useful or not."
        }
      ]
    }
  },
  "required": [
    "type"
  ]
}