Skip to content

fix(stripe): encode Stripe wire shapes#359

Open
agcty wants to merge 1 commit into
alchemy-run:mainfrom
agcty:codex/stripe-wire-shapes
Open

fix(stripe): encode Stripe wire shapes#359
agcty wants to merge 1 commit into
alchemy-run:mainfrom
agcty:codex/stripe-wire-shapes

Conversation

@agcty

@agcty agcty commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

What

Fixes Stripe wire-shape handling in the generated Distilled Stripe SDK so callers do not need resource-local raw HTTP fallbacks.

  • Serializes GET operation body fields as Stripe query params using bracket notation for arrays and nested objects.
  • Preserves typed GetPrices support for created range filters and repeated lookup_keys.
  • Allows Stripe's empty-string clear value for PostProductsId.shippable.
  • Updates the OpenAPI 3 generator to preserve parameter schemas instead of collapsing non-enum query params to primitive strings.

Why

alchemy-run/alchemy-effect#693 needs Stripe product clears, lookup-key/range price listing, and delete responses to work through the Distilled operations directly.

Verification

  • bun --filter '@distilled.cloud/stripe' test -- request-options.test.ts
  • bun --filter '@distilled.cloud/stripe' typecheck
  • bun --filter '@distilled.cloud/stripe' build
  • bun --filter '@distilled.cloud/core' typecheck
  • bun --filter '@distilled.cloud/core' lint
  • bun --filter '@distilled.cloud/stripe' lint
  • bun --filter '@distilled.cloud/core' check
  • bun --filter '@distilled.cloud/stripe' check

@agcty agcty force-pushed the codex/stripe-wire-shapes branch from f175757 to 5192b53 Compare July 1, 2026 19:33
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