{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/anomalyarmor-ai/json-schema/anomalyarmor-ai-agent-feedback-request-schema.json",
  "title": "AgentFeedbackRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/anomalyarmor-ai-agent-api-openapi.yml#/components/schemas/AgentFeedbackRequest",
  "properties": {
    "feedback": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^(thumbs-up|thumbs-down|bug)$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Feedback"
    },
    "bug_report": {
      "anyOf": [
        {
          "$ref": "#/$defs/BugReportDetail"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "type": "object",
  "$defs": {
    "BugReportDetail": {
      "properties": {
        "description": {
          "type": "string",
          "maxLength": 2000,
          "minLength": 1,
          "title": "Description"
        },
        "expected_behavior": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 2000
            },
            {
              "type": "null"
            }
          ],
          "title": "Expected Behavior"
        },
        "severity": {
          "type": "string",
          "pattern": "^(low|medium|high|critical)$",
          "title": "Severity",
          "default": "medium"
        },
        "steps_to_reproduce": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 3000
            },
            {
              "type": "null"
            }
          ],
          "title": "Steps To Reproduce"
        }
      },
      "type": "object",
      "required": [
        "description"
      ],
      "title": "BugReportDetail"
    }
  }
}