Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,23 @@ commit SHA on `Universal-Commerce-Protocol/python-sdk`:
uv add "ucp-sdk @ git+https://github.com/Universal-Commerce-Protocol/python-sdk.git@<commit-sha>"
```

### Upgrading from `0.5.x`

Moving from `0.5.x` to `20260825.0.0` (and later `YYYYMMDD.MINOR.PATCH`
releases) is a breaking change:

- **Version range:** Existing `~=0.5.0` or `<1.0` constraints will not upgrade
automatically; update your dependency explicitly (for example,
`uv add "ucp-sdk>=20260825.0.0,<20260826.0.0"`).
- **Flattened imports:** Nested schema submodules (such as
`ucp_sdk.models.schemas.shopping.checkout`) have been removed; import all
models from `ucp_sdk.models` (or `ucp_sdk.models.schemas`).
- **Structural wire models only:** Custom cross-field and conditional constraint
validators have been removed from the generated Pydantic models. Validate
incoming wire payloads against the bundled `ucp_sdk/openapi.json` using
`jsonschema` (or `ucp-schema validate`) before deserializing (see
[Validation](#validation)).

## Usage

The example below parses a UCP checkout response and reads typed fields:
Expand Down
Loading