diff --git a/README.md b/README.md index 62cc7cd..82b4814 100644 --- a/README.md +++ b/README.md @@ -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@" ``` +### 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: