{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/git-top/json-schema/git-top-feedback-proposal-request-schema.json",
  "title": "FeedbackProposalRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/git-top-feedback-api-openapi.yml#/components/schemas/FeedbackProposalRequest",
  "type": "object",
  "required": [
    "project_id",
    "feedback_type",
    "proposed",
    "evidence",
    "rationale"
  ],
  "properties": {
    "project_id": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$"
    },
    "feedback_type": {
      "type": "string",
      "enum": [
        "classification",
        "alternative",
        "metadata",
        "stale",
        "other"
      ]
    },
    "proposed": {
      "type": "object",
      "minProperties": 1,
      "additionalProperties": true
    },
    "evidence": {
      "type": "array",
      "minItems": 1,
      "maxItems": 10,
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "rationale": {
      "type": "string",
      "minLength": 12,
      "maxLength": 2000
    },
    "source_agent": {
      "type": "string",
      "maxLength": 200
    },
    "source_url": {
      "type": "string",
      "format": "uri"
    }
  }
}