Skip to content

chore/cleanup codegen transforms#14

Merged
igrigorik merged 2 commits into
mainfrom
chore/cleanup-codegen-transforms
May 21, 2026
Merged

chore/cleanup codegen transforms#14
igrigorik merged 2 commits into
mainfrom
chore/cleanup-codegen-transforms

Conversation

@igrigorik
Copy link
Copy Markdown
Contributor

Remove two upstream-spec workarounds in scripts/codegen-schemas.ts:

  • T3 — platform_schema endpoint requirement
  • T5 — business_schema payment_handlers requirement

igrigorik added 2 commits May 21, 2026 09:03
   The upstream spec PR fixing platform_schema's over-strict `endpoint`
   requirement on rest/mcp anyOf branches has landed.

   Apply the script's own removal checklist: delete the transform function
   and self-destruct error, remove the call site, simplify the resolve.http
   resolver to fetch service.json directly, drop the T3 entries from the
   transformsApplied[] list and banner block, and regenerate.

   The regenerated src/core/generated/*.zod.ts schemas have a banner-only
   diff — the Zod expressions are byte-identical to what shipped in 0.5.0,
   because the upstream fix is shape-equivalent to what T3 was patching
   locally. No runtime behavior change; this is pure code hygiene.
Drop the support for missing payment_handler workaround; align to UCP
spec 'required' semantics. If a business wants to offer read-only
contract (e.g. only access to catalog), then per spec they should
still advertise payment_handlers but can return empty object.
@igrigorik igrigorik merged commit 22948ea into main May 21, 2026
13 checks passed
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.

1 participant