From ddb1b8155651f1382f4b452ff507d31f44ffbabb Mon Sep 17 00:00:00 2001 From: Vishal Katyal Date: Fri, 31 Jul 2026 17:14:39 -0400 Subject: [PATCH] docs(split-payments): validate the allowed_combinations profile example The only business-profile example for the split payments extension was annotated `ucp:example skip`, so CI never checked it, and it did not match the profile schema three ways: `capabilities` was an array where the schema defines an object map keyed by reverse-domain name, the entry omitted the required `schema` URL, and it pinned `version: 2026-01-23`, a release that does not contain this extension. Rewrite the example in the `ucp.capabilities` map form with `spec`, `schema`, `extends`, and `{{ ucp_version }}`, mirroring the buyer-consent profile example, and replace the skip with a validated `schema=profile def=business_schema` annotation so CI covers it going forward. Full corpus: 283 passed (was 282), 47 skipped (was 48). --- docs/specification/split-payments.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/docs/specification/split-payments.md b/docs/specification/split-payments.md index 86e948139..a0a501ce5 100644 --- a/docs/specification/split-payments.md +++ b/docs/specification/split-payments.md @@ -107,13 +107,18 @@ if any valid assignment exists, the combination matches. A business that supports (a) a card with up to 2 redeemables, (b) up to 5 gift cards alone, and (c) two credit cards: - + ```json { - "capabilities": [{ + "capabilities": { "dev.ucp.shopping.split_payments": [ { - "version": "2026-01-23", + "version": "{{ ucp_version }}", + "spec": "https://ucp.dev/{{ ucp_version }}/specification/split-payments", + "schema": "https://ucp.dev/{{ ucp_version }}/schemas/shopping/split_payments.json", + "extends": [ + "dev.ucp.shopping.checkout" + ], "config": { "allowed_combinations": [ [ @@ -130,7 +135,7 @@ gift cards alone, and (c) two credit cards: } } ] - }] + } } ```