{
  "id": "python/fastapi-request-validation-field-required",
  "signature": "fastapi.exceptions.RequestValidationError: 1 validation error for Request body -> name field required (type=value_error.missing)",
  "signature_zh": "fastapi.exceptions.RequestValidationError: 请求体 -> name 字段必填（type=value_error.missing）",
  "regex": "fastapi\\.exceptions\\.RequestValidationError:\\ 1\\ validation\\ error\\ for\\ Request\\ body\\ \\->\\ name\\ field\\ required\\ \\(type=value_error\\.missing\\)",
  "domain": "python",
  "category": "data_error",
  "subcategory": null,
  "root_cause": "The Pydantic model declares a required field but the client JSON omits it, or the field name casing differs.",
  "root_cause_type": "generic",
  "root_cause_zh": "Pydantic 模型声明了必填字段，但客户端 JSON 中缺失，或字段名大小写不一致。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Swallows invalid input; the handler receives no valid data and downstream code fails.",
      "fail_rate": 0.75,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "extra controls unknown fields, not missing required ones.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.9,
      "how": "Give the field a default or make it optional:\nclass Item(BaseModel):\n    name: str = ''",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.85,
      "how": "Fix the client payload to include the key with correct casing.",
      "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-07-30",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}