Skip to content

feat(sdk): generate operation-specific options objects for query parameters#106

Merged
matoous merged 2 commits intomainfrom
md/query-params-options
Apr 22, 2026
Merged

feat(sdk): generate operation-specific options objects for query parameters#106
matoous merged 2 commits intomainfrom
md/query-params-options

Conversation

@matoous
Copy link
Copy Markdown
Contributor

@matoous matoous commented Apr 22, 2026

Generate dedicated operation-specific options classes for non-path request parameters and update client
methods to accept those objects instead of long lists of scalar query arguments, improving readability,
discoverability, and future extensibility of the SDK surface. This keeps path parameters and request
bodies explicit, regenerates the affected clients, and updates the basic example to use the new options-
based calling pattern.

matoous added 2 commits April 23, 2026 00:38
Update the code generator and SDK runtime so free-form object
schemas are exposed as a `JsonObject` helper instead of raw
`JsonDocument`/`JsonElement` shapes, improving the authoring experience
for payloads like Apple Pay / Google Pay data, metadata, tags, and
other `additionalProperties: true` maps while keeping the wire format
unchanged. This also updates generated dictionary-only models to
inherit from `JsonObject` and adds regular generator and SDK tests
covering the new mapping, serialization, and parsing behavior.
…meters

Generate dedicated operation-specific options classes for non-path request parameters and update client
methods to accept those objects instead of long lists of scalar query arguments, improving readability,
discoverability, and future extensibility of the SDK surface. This keeps path parameters and request
bodies explicit, regenerates the affected clients, and updates the basic example to use the new options-
based calling pattern.
@matoous matoous force-pushed the md/query-params-options branch from a373bb5 to 09b1a6a Compare April 22, 2026 22:40
@matoous matoous changed the title feat(sdk): improve free-form JSON ergonomics feat(sdk): generate operation-specific options objects for query parameters Apr 22, 2026
@matoous matoous merged commit 272cba1 into main Apr 22, 2026
13 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