{
  "id": "api/rest-api-response-missing-required-field",
  "signature": "400 Bad Request: Missing required field 'email' in request body",
  "signature_zh": "400 错误请求：请求体中缺少必填字段 'email'",
  "regex": "400 Bad Request: Missing required field '.*' in request body",
  "domain": "api",
  "category": "data_error",
  "subcategory": null,
  "root_cause": "The API endpoint requires a specific field in the JSON request body, but it was omitted or set to null.",
  "root_cause_type": "generic",
  "root_cause_zh": "API 端点要求在 JSON 请求体中包含特定字段，但该字段被省略或设置为 null。",
  "versions": [
    {
      "version": "REST API v2.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "OpenAPI 3.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Changing the HTTP method from POST to PUT does not fix the missing field issue; the server still validates the request body.",
      "fail_rate": 0.2,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Adding the field with an empty string instead of a valid value may cause a different validation error (e.g., 'email' must be a valid email).",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Inspect the API documentation to confirm required fields. Add the missing field to the request body. Example: curl -X POST https://api.example.com/users -H 'Content-Type: application/json' -d '{\"email\": \"user@example.com\", \"name\": \"John\"}'",
      "success_rate": 0.95,
      "how": "Inspect the API documentation to confirm required fields. Add the missing field to the request body. Example: curl -X POST https://api.example.com/users -H 'Content-Type: application/json' -d '{\"email\": \"user@example.com\", \"name\": \"John\"}'",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use a JSON schema validator (e.g., ajv) to validate the request body locally before sending.",
      "success_rate": 0.8,
      "how": "Use a JSON schema validator (e.g., ajv) to validate the request body locally before sending.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "查阅 API 文档确认必填字段。将缺失的字段添加到请求体中。示例：curl -X POST https://api.example.com/users -H 'Content-Type: application/json' -d '{\"email\": \"user@example.com\", \"name\": \"John\"}'",
    "在发送前使用 JSON schema 验证器（如 ajv）在本地验证请求体。"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://swagger.io/docs/specification/describing-parameters/",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.9,
  "fix_success_rate": 0.95,
  "resolvable": "true",
  "first_seen": "2023-09-20",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}