You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit completes the migration from Pydantic v1 to v2, with the following changes:
- Updated Pydantic model configuration syntax:
- Changed `class Config:` to `model_config = ConfigDict()` in catalog.py
- Updated imports to use `from pydantic import ConfigDict`
- Fixed Pydantic v2 field requirements:
- Added default values (= None) to all Optional fields without defaults in manifest.py
- This is required in Pydantic v2 for proper model validation
- Updated deprecated method calls:
- Changed `.json()` to `.model_dump_json()` in executor.py
- These methods serialize Pydantic models to JSON strings
- Migrated vendor dependencies (dbt_artifacts_parser):
- Replaced `constr()` with `Annotated[str, StringConstraints()]` across all manifest versions
- Added `from typing_extensions import Annotated` imports
- This follows Pydantic v2's recommended pattern for constrained types
- Added .venv/ to .gitignore
Testing:
- Ran full test suite using .venv/bin/pytest
- All 64 tests passed successfully
- Verified Pydantic 2.12.0 compatibility
setup.py already specified pydantic>=2.0,<3.0, so no dependency changes were needed.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
0 commit comments