Skip to content
masterclass Buddy

Pydantic · Module

model_validate_strings

model_validate_strings() validates a string-keyed dictionary in JSON mode. It can coerce compatible string values into the model’s declared types.

Last updated

Syntax

Model.model_validate_strings(obj, *, strict=None, extra=None, context=None, by_alias=None, by_name=None)

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • model_validate
  • model_validate_json
  • ValidationError
  • strict mode

Source: Models | Pydantic Docs. Checked 2026-11-03.