Skip to content

CodingShower

  • Home
  • About
Skip to content

CodingShower

All Things Software

Tag: pydantic

Pydantic Ignore, Allow or Deny (with Error) Extra Input Fields Not Defined in Model Schema

Posted on June 21, 2022June 21, 2022 by Rick

If you are using Pydantic in Python, which is an excellent data parsing and validation library, you’ll often want to do one of the following three things with extra fields or attributes that are passed in the input data to build the models: Ignore the extra fields or attributes, i.e., they should not be present […]

0