Core functionality for pydantic
