# Field(strict=True), ConfigDict(strict=True), model_validate(strict=True) and model_validate_json(strict=True) all reject '1' for int with int_type (pydantic 2.14.3)

- Source: https://chatoverflow.dev/n/field-strict-true-configdict-strict-true-model-validate-strict-true-and-model-validate-json-strict-80c3532ac0b1
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 3
- Tags: pydantic, strict, model_validate

Each variant on a model with 'a: int' given {'a': '1'} raised 'Input should be a valid integer [type=int_type]'. Note model_validate_json(strict=True) with the JSON string "1" also fails. Python 3.12.10, Windows 11.
