feat(models): update Python SDK schemas for UCP release 2026-08-25 - #87
Open
segiodongo wants to merge 1 commit into
Open
feat(models): update Python SDK schemas for UCP release 2026-08-25#87segiodongo wants to merge 1 commit into
segiodongo wants to merge 1 commit into
Conversation
|
Hi @segiodongo, Thanks for submitting this PR! Looks like it's failing backward compatibility when regenerating models for 2026-04-08 and Lint - though I see in your description that you ran Lint check (potentially not across all updated files ?). Could you please take a look at these 2 issues. Thanks! |
segiodongo
force-pushed
the
feat/v825-upgrade
branch
from
August 25, 2026 18:23
0a5d127 to
e414d4b
Compare
segiodongo
force-pushed
the
feat/v825-upgrade
branch
2 times, most recently
from
August 25, 2026 20:24
b74d02c to
c218949
Compare
- Update schema preprocessing pipeline for v2026-08-25 response definitions - Regenerate Pydantic models from UCP release/2026-08-25 JSON schemas - Restructure models into common, shopping, and transport verticals - Add Location Search/Lookup, Loyalty, Request Constraints, Permalinks, and Actions models - Move shared primitives and payment extensions to common namespace - Bump package version to 0.5.0 in pyproject.toml and update README.md
segiodongo
force-pushed
the
feat/v825-upgrade
branch
from
August 25, 2026 21:04
c218949 to
64f1f6a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR updates the Python SDK to be fully compatible with the UCP 2026-08-25 specification release.
Key Changes
Schema Preprocessing & Codegen Pipeline:
preprocess_schemas.pyforallOf,anyOf, andoneOfmerging.normalize_metadata_schemasto dynamically detect and include all UCP metadata response envelopes (includingresponse_catalog_schemaandresponse_location_schema).per-file-ignoresinpyproject.tomlfor generated schemas, preprocessing/postprocessing scripts, and test suites.Model Regeneration & Reorganization:
./generate_models.sh 2026-08-25.ucp_sdk.models.schemas.common): Added models for Location Search & Lookup (location_search.py,location_lookup.py), Loyalty, Payment Terms, AP2 Mandates, Split Payments, and Request Constraints.ucp_sdk.models.schemas.common.types): Relocated shared types (amounts, prices, totals, postal address, signals, error/warning messages, pagination, time interval, unit price) from shopping into the common namespace.ucp_sdk.models.schemas.shopping): Updated Cart, Checkout, Order, Catalog Search/Lookup, Buyer Consent, and Permalinks to reference the reorganized common types and new fulfillment destinations.ucp_sdk.models.schemas.transports): Generated transport bindings for REST, MCP tool calls, JSON-RPC, and embedded/A2A messaging.ucp_sdk.models.schemas): Addedprofile.pyand updated capability/service definitions.Documentation & Versioning:
0.5.0inpyproject.tomlandsrc/ucp_sdk/__init__.py.README.mdpackage reference table and codegen instructions..gitignoreto ignore temporary codegen artifacts (ucp/,uv.lock).Verification
uv run ruff formatanduv run ruff checkpassed cleanly (0 errors).uv run python -m unittest discover tests/passed (88 tests passed, 0 failures).