{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/thinair-co/json-schema/thinair-co-feedback-v1-request-schema.json",
  "title": "FeedbackV1Request",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/thinair-co-learning-api-openapi.yml#/components/schemas/FeedbackV1Request",
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2000,
      "description": "The original query text this feedback is about."
    },
    "place_id": {
      "type": "string",
      "pattern": "^ta_(place|intersection)_[0-9a-f]{7,32}$",
      "description": "Stable ThinAir place id the feedback is about."
    },
    "verdict": {
      "type": "string",
      "enum": [
        "wrong",
        "right",
        "moved"
      ],
      "description": "'wrong' — the answer is incorrect; 'right' — confirms the answer; 'moved' — the place exists but sits at different coordinates (pair with `suggested`)."
    },
    "suggested": {
      "type": "object",
      "properties": {
        "lat": {
          "type": "number",
          "minimum": -90,
          "maximum": 90,
          "description": "Latitude in decimal degrees, WGS84."
        },
        "lon": {
          "type": "number",
          "minimum": -180,
          "maximum": 180,
          "description": "Longitude in decimal degrees, WGS84."
        }
      },
      "required": [
        "lat",
        "lon"
      ],
      "description": "Suggested correct coordinates (WGS84)."
    },
    "note": {
      "type": "string",
      "maxLength": 280,
      "description": "Free-text context for human review (≤280 chars). Stored in the evidence bundle only — never emitted to analytics."
    }
  },
  "required": [
    "verdict"
  ]
}