{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-xdr/json-schema/cisco-xdr-feedback-schema.json",
  "title": "Feedback",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-xdr-feedback-api-openapi.yml#/components/schemas/Feedback",
  "type": "object",
  "properties": {
    "user_role": {
      "description": "User Role",
      "type": "string"
    },
    "org_id": {
      "description": "The organization of the user who created the Feedback",
      "type": "string"
    },
    "experience": {
      "description": "Experience rating from 1 to 5",
      "type": "integer",
      "format": "int64",
      "enum": [
        1,
        4,
        3,
        2,
        5
      ]
    },
    "user_email": {
      "description": "The email address to contact",
      "type": "string"
    },
    "bug": {
      "description": "True if the feedback describes a bug",
      "type": "boolean"
    },
    "source": {
      "description": "The product related to this feedback. Can be one of \"threat-response\", \"securex\", \"ciscoxdr\" (case-sensitive), or a different non-blank string, denoting some other product or aspect.",
      "type": "string"
    },
    "user_idp": {
      "description": "The IDP of the user",
      "type": "string"
    },
    "contact_allowed": {
      "description": "True if the user accepts to be contacted by email",
      "type": "boolean"
    },
    "id": {
      "type": "string"
    },
    "user_id": {
      "description": "The user who created the Feedback",
      "type": "string"
    },
    "client_id": {
      "description": "The OAuth2 client used to create the Feedback",
      "type": "string"
    },
    "user_name": {
      "description": "The contact name",
      "type": "string"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "org_name": {
      "description": "The Customer Organization name",
      "type": "string"
    },
    "text": {
      "description": "The description of the feedback (bug, new feature)",
      "type": "string"
    }
  },
  "additionalProperties": false,
  "required": [
    "user_role",
    "org_id",
    "bug",
    "user_idp",
    "contact_allowed",
    "id",
    "user_id",
    "client_id",
    "created_at",
    "text"
  ]
}