{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/distribution-tech/json-schema/distribution-tech-feedback-list-schema.json",
  "title": "FeedbackList",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/distribution-tech-feedback-api-openapi.yml#/components/schemas/FeedbackList",
  "type": "object",
  "properties": {
    "feedback": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/FeedbackItem"
      }
    }
  },
  "required": [
    "feedback"
  ],
  "additionalProperties": false,
  "$defs": {
    "FeedbackContext": {
      "type": "object",
      "description": "Identifiers only. Any other key is dropped; a url keeps only its origin and path.",
      "properties": {
        "tool": {
          "type": "string",
          "maxLength": 80
        },
        "request_id": {
          "type": "string",
          "maxLength": 120
        },
        "url": {
          "type": "string",
          "maxLength": 2000
        },
        "error_code": {
          "type": "string",
          "maxLength": 80
        },
        "status": {
          "type": "integer",
          "minimum": 100,
          "maximum": 599
        }
      }
    },
    "FeedbackItem": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "source": {
          "type": "string",
          "enum": [
            "mcp",
            "rest",
            "app_agent",
            "app_ui"
          ]
        },
        "kind": {
          "type": "string",
          "enum": [
            "bug",
            "gap",
            "idea",
            "praise",
            "other"
          ]
        },
        "title": {
          "type": "string"
        },
        "details": {
          "type": "string",
          "description": "Only on a report this key sent."
        },
        "context": {
          "$ref": "#/$defs/FeedbackContext"
        },
        "status": {
          "type": "string",
          "enum": [
            "new",
            "triaged",
            "shipped",
            "wont_fix"
          ]
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        }
      },
      "required": [
        "id",
        "kind",
        "title",
        "status",
        "created_at"
      ],
      "additionalProperties": false
    }
  }
}