Skip to content

feat(query): support explicit null query parameters#34

Merged
matoous merged 2 commits intomainfrom
codex/step1-nullable-query-tristate
Feb 19, 2026
Merged

feat(query): support explicit null query parameters#34
matoous merged 2 commits intomainfrom
codex/step1-nullable-query-tristate

Conversation

@matoous
Copy link
Contributor

@matoous matoous commented Feb 19, 2026

Introduce OptionalQuery<T> tri-state query value (unset/value/null) and add RequestBuilder support to emit literal nulls when requested.

Update codegen to generate OptionalQuery<...> for nullable optional query parameters so callers can omit a parameter or send explicit null semantics as required by API filters.

Add RequestBuilder tests for unset and explicit null behavior.

Resolve component aliases with inline schema context so aliases that wrap inline object items are generated as concrete models instead of JsonDocument.\n\nThis improves type safety for business owners and payouts payloads and updates generated clients/models accordingly.
Introduce OptionalQuery<T> tri-state query value (unset/value/null) and add RequestBuilder support to emit literal nulls when requested.\n\nUpdate codegen to generate OptionalQuery<...> for nullable optional query parameters so callers can omit a parameter or send explicit null semantics as required by API filters.\n\nAdd RequestBuilder tests for unset and explicit null behavior.
@matoous matoous changed the title feat(codegen): generate typed models for alias array/map schemas feat(query): support explicit null query parameters Feb 19, 2026
@matoous matoous merged commit d42acbe into main Feb 19, 2026
9 checks passed
@github-actions github-actions bot mentioned this pull request Feb 19, 2026
@matoous matoous deleted the codex/step1-nullable-query-tristate branch February 19, 2026 08:24
@github-actions github-actions bot mentioned this pull request Feb 19, 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