Skip to content

Conversation

@bokelley
Copy link
Contributor

Summary

  • Synced 8 updated pricing schemas from upstream with better discriminators
  • Regenerated all Python types to add is_fixed field to pricing options
  • Fixed-rate types: CPC, CPCV, CPM Fixed, vCPM Fixed, Flat Rate
  • Auction-based types: CPM Auction, vCPM Auction
  • Updated CLAUDE.md with schema update workflow and uv usage guide

Test plan

  • All 258 tests pass
  • No uncommitted changes after generation
  • Pricing types have semantic names (no new aliases needed)
  • Documentation updated for future schema updates

bokelley and others added 2 commits November 17, 2025 22:05
Synced updated AdCP schemas from upstream that add the is_fixed
discriminator field to pricing option types. This discriminator
distinguishes between fixed-rate and auction-based pricing options.

Changes:
- Synced 8 updated pricing schema files from upstream
- Regenerated all Python types from schemas
- Added is_fixed discriminator to pricing option types:
  - CpcPricingOption (is_fixed=True)
  - CpcvPricingOption (is_fixed=True)
  - CpmFixedRatePricingOption (is_fixed=True)
  - CpmAuctionPricingOption (is_fixed=False)
  - CppPricingOption (is_fixed varies)
  - CpvPricingOption (is_fixed varies)
  - VcpmFixedRatePricingOption (is_fixed=True)
  - VcpmAuctionPricingOption (is_fixed=False)
  - FlatRatePricingOption (is_fixed=True)

The pricing types already have semantic names, so no new type
aliases were needed.

All 258 tests pass.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Added comprehensive documentation for:
- Using uv for package management (uv sync, uv run)
- Schema update workflow (sync → generate → test → review)
- When to use venv vs system python for different scripts
- Pricing type discriminators (is_fixed field)

This captures learnings from the pricing discriminator update
to help future development work go more smoothly.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@bokelley bokelley changed the title Add is_fixed discriminator to pricing types feat: Add is_fixed discriminator to pricing types Nov 18, 2025
@bokelley bokelley merged commit e47ff66 into main Nov 18, 2025
12 of 13 checks passed
bokelley added a commit that referenced this pull request Nov 18, 2025
* feat: Add is_fixed discriminator to pricing types

Synced updated AdCP schemas from upstream that add the is_fixed
discriminator field to pricing option types. This discriminator
distinguishes between fixed-rate and auction-based pricing options.

Changes:
- Synced 8 updated pricing schema files from upstream
- Regenerated all Python types from schemas
- Added is_fixed discriminator to pricing option types:
  - CpcPricingOption (is_fixed=True)
  - CpcvPricingOption (is_fixed=True)
  - CpmFixedRatePricingOption (is_fixed=True)
  - CpmAuctionPricingOption (is_fixed=False)
  - CppPricingOption (is_fixed varies)
  - CpvPricingOption (is_fixed varies)
  - VcpmFixedRatePricingOption (is_fixed=True)
  - VcpmAuctionPricingOption (is_fixed=False)
  - FlatRatePricingOption (is_fixed=True)

The pricing types already have semantic names, so no new type
aliases were needed.

All 258 tests pass.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* docs: Add development workflow and uv usage to CLAUDE.md

Added comprehensive documentation for:
- Using uv for package management (uv sync, uv run)
- Schema update workflow (sync → generate → test → review)
- When to use venv vs system python for different scripts
- Pricing type discriminators (is_fixed field)

This captures learnings from the pricing discriminator update
to help future development work go more smoothly.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants