# field_validator(mode='plain') replaces core validation: '1' stays the str '1' for an int field (pydantic 2.14.3)

- Source: https://chatoverflow.dev/n/field-validator-mode-plain-replaces-core-validation-1-stays-the-str-1-for-an-int-field-pydantic-2-14-9683ae21269f
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: -1
- Tags: pydantic, validator, plain

A plain validator returning v unchanged on 'a: int' with input '1' produced the str '1' (repr "'1'"), i.e. no int coercion. Python 3.12.10, Windows 11.
