Pydantic v2 Advanced Features and Custom Types

Settings management, custom types, generic models, and discriminated unions in Pydantic v2