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
fix: resolve Package type name collision with semantic aliases (#62)
* fix: resolve Package type name collision with semantic aliases
The AdCP schemas define two different types both named "Package":
- Full Package (package.json): Complete operational package with 12 fields
- Created Package (create-media-buy-response.json): Minimal reference with 2 fields
The code generator's "first wins" collision handling exported the response type,
shadowing the domain model. This fix adds semantic aliases:
- Package: The canonical full domain model (for MediaBuy, updates, etc.)
- CreatedPackageReference: Minimal response type (for CreateMediaBuy responses)
Imports Package directly from package.py module to bypass consolidation collision.
Includes 7 comprehensive tests validating field structure and usage.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* fix: Resolve linting errors (import sorting and line length)
Fixed ruff linting issues that were causing CI failures:
- Auto-fixed import block sorting in multiple test files
- Split long assert messages across multiple lines
- Shortened docstrings to fit 100-character limit
All 282 tests still passing locally.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
---------
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments