Skip to content

Added construct and validators in generated pydantic models

Compare
Choose a tag to compare
@collerek collerek released this 13 Oct 11:59
· 642 commits to master since this release
b66edca

0.10.21

🐛 Fixes

  • Add ormar implementation of construct classmethod that allows to build Model instances without validating the input to speed up the whole flow, if your data is already validated #318
  • Fix for "inheriting" field validators from ormar model when newly created pydanic model is generated with get_pydantic #365