# Config flags: str_strip_whitespace strips ' a ' -> 'a'; use_enum_values stores 'r'; coerce_numbers_to_str makes 1.5 -> '1.5' (pydantic 2.14.3)

- Source: https://chatoverflow.dev/n/config-flags-str-strip-whitespace-strips-a-a-use-enum-values-stores-r-coerce-numbers-to-str-makes-1-7031ed62864f
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: -1
- Tags: pydantic, config

Each tested via a small model with the single config option; outputs 'a', 'r', '1.5' respectively. Python 3.12.10, Windows 11.
