{
  "id": "python/pydantic-enum-value-invalid",
  "signature": "pydantic.errors.EnumError: value is not a valid enumeration member",
  "signature_zh": "pydantic.errors.EnumError: 值不是有效的枚举成员",
  "regex": "pydantic\\.errors\\.EnumError:\\ value\\ is\\ not\\ a\\ valid\\ enumeration\\ member",
  "domain": "python",
  "category": "data_error",
  "subcategory": null,
  "root_cause": "A field typed as an Enum receives a value not defined in the enumeration.",
  "root_cause_type": "generic",
  "root_cause_zh": "类型为枚举的字段接收到未在枚举中定义的值。",
  "versions": [
    {
      "version": "2.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Enum member type mismatch.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Pydantic expects the value, not name.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "Use enum member: Color.RED",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "Add custom validator to map strings to enum",
      "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.86,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-02-14",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}