{
  "id": "python/fastapi-requestvalidationerror-field-required",
  "signature": "fastapi.exceptions.RequestValidationError: field required",
  "signature_zh": "fastapi.exceptions.RequestValidationError：字段必填",
  "regex": "fastapi\\.exceptions\\.RequestValidationError:\\ field\\ required",
  "domain": "python",
  "category": "runtime_error",
  "subcategory": null,
  "root_cause": "A required field is missing from the request body, query parameters, or path parameters according to the Pydantic model.",
  "root_cause_type": "generic",
  "root_cause_zh": "根据 Pydantic 模型，请求体、查询参数或路径参数中缺少必填字段。",
  "versions": [
    {
      "version": "0.100.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "0.110.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Optional without a default still requires the field to be present (can be None). The error persists.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "This affects response validation, not request validation.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "class Item(BaseModel):\n    name: str = \"default\"",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "Check the OpenAPI docs at /docs to verify the expected schema and send all required fields.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": null,
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.88,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-02-20",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}