{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rentseek-ing/json-schema/rentseek-ing-feedback-submission-schema.json",
  "title": "FeedbackSubmission",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rentseek-ing-openapi.yml#/components/schemas/FeedbackSubmission",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "schema_version",
    "category",
    "message",
    "surface"
  ],
  "properties": {
    "schema_version": {
      "type": "string",
      "enum": [
        "feedback/v1"
      ]
    },
    "category": {
      "type": "string",
      "enum": [
        "bug",
        "data_quality",
        "docs",
        "api",
        "mcp",
        "other"
      ]
    },
    "message": {
      "type": "string",
      "minLength": 10,
      "maxLength": 2000
    },
    "surface": {
      "type": "string",
      "enum": [
        "website",
        "developer_api",
        "mcp"
      ]
    },
    "url": {
      "type": "string",
      "maxLength": 500
    },
    "route": {
      "type": "string",
      "maxLength": 200
    },
    "tool": {
      "type": "string",
      "maxLength": 80
    },
    "request_id": {
      "type": "string",
      "maxLength": 128
    },
    "trace_id": {
      "type": "string",
      "maxLength": 128
    },
    "context": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "ticker": {
          "type": "string"
        },
        "fiscal_year": {
          "type": "integer",
          "minimum": 1900,
          "maximum": 2100
        },
        "executive_id": {
          "type": "string",
          "maxLength": 80
        }
      }
    }
  }
}