Skip to content

feat(sdk): clarify opaque JSON handling in generated request and response types#107

Merged
matoous merged 1 commit intomainfrom
md/opaque-json
Apr 22, 2026
Merged

feat(sdk): clarify opaque JSON handling in generated request and response types#107
matoous merged 1 commit intomainfrom
md/opaque-json

Conversation

@matoous
Copy link
Copy Markdown
Contributor

@matoous matoous commented Apr 22, 2026

Update the generator to treat opaque JSON consistently by usage: free-form request bodies and model
properties now use JsonObject for ergonomic authoring, while opaque response and error payloads remain
JsonDocument to preserve raw response semantics. This fixes regressions such as Apple Pay session
responses, adds generator coverage for request/response/error behavior, and keeps the generated SDK
surface predictable across untyped JSON schemas.

…onse types

Update the generator to treat opaque JSON consistently by usage: free-form request bodies and model
properties now use JsonObject for ergonomic authoring, while opaque response and error payloads remain
JsonDocument to preserve raw response semantics. This fixes regressions such as Apple Pay session
responses, adds generator coverage for request/response/error behavior, and keeps the generated SDK
surface predictable across untyped JSON schemas.
@matoous matoous self-assigned this Apr 22, 2026
@matoous matoous merged commit c27e7b8 into main Apr 22, 2026
11 checks passed
@github-actions github-actions Bot mentioned this pull request Apr 22, 2026
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