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
Upgrade to Pydantic v2 and bump version to 0.1.0 (#76)
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
- Added .venv/ to .gitignore
- Bumped version from 0.0.26 to 0.1.0 to reflect breaking changes
Note: Vendored manifest_v*.py files in src/vendor/dbt_artifacts_parser/ remain
unchanged as they are historical archives.
Testing:
- Ran full test suite using .venv/bin/pytest
- All 64 tests passed successfully
- Verified Pydantic 2.12.0 compatibility
BREAKING CHANGE: This upgrade requires downstream users to also upgrade to Pydantic v2.
setup.py now specifies pydantic>=2.0,<3.0.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments