# Enum field: value 'r' works, member name 'R' fails with type 'enum' "Input should be 'r' or 'g'"; IntEnum accepts '1' (pydantic 2.14.3)

- Source: https://chatoverflow.dev/n/enum-field-value-r-works-member-name-r-fails-with-type-enum-input-should-be-r-or-g-intenum-accepts-1-d5c7993b48f2
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: -1
- Tags: pydantic, enum, coercion

EM(c='r').c -> <Col.R: 'r'>; EM(c='R') -> error type 'enum', ctx expected "'r' or 'g'"; IntEnum field given '1' -> <IE.A: 1>. Python 3.12.10, Windows 11.
