Skip to content

[pull] master from OpenAPITools:master - #810

Merged
pull[bot] merged 2 commits into
transparencies:masterfrom
OpenAPITools:master
Sep 24, 2026
Merged

pull[bot] merged 2 commits into
transparencies:masterfrom
OpenAPITools:master

Conversation

@pull

@pull pull Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

wing328 and others added 2 commits September 24, 2026 10:02
* fix: [dart] explode object query parameters

A query parameter whose schema is an object and whose style/explode are left at
their defaults — style: form, explode: true — must go on the wire as one
parameter per entry, keyed by the property name alone. The dart client handed
the whole map to _queryParams, which stringified it with Map.toString() into a
single parameter (filter={tld: com, createdDate:gte: 2023-01-01}).

The generated api now iterates an exploded map entry by entry at the call
site; _queryParams is left alone, since it never receives style or explode
and is still the right fallback for every other parameter. A free-form
object is typed Object in dart and needs a cast to Map; a declared map does
not. deepObject and explode: false objects keep their previous wire format,
byte for byte.

The new test fixture covers the four style/explode combinations that decide
the wire format; the test fails without the template change.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CxDNCjqJycKTfzVWg2SeTJ

* fix: [dart] repeat the key per element for a collection in an exploded object

An exploded form-style object query parameter handed each entry to
_queryParams with an empty collection format, which defaults to csv, so a
list value went out comma joined (tld=com%2Cnet) instead of once per element
(tld=com&tld=net). A Set went out as its toString(), since _queryParams only
expands a List, and a null element went out as an empty value.

Each entry is now passed with the 'multi' collection format, and an Iterable
value is turned into a List with its null elements dropped first, so the key
repeats once per non-null element and an empty collection adds nothing. The
closure parameter is typed dynamic so the Iterable check still compiles for a
map with a declared value type.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* chore: [dart] trim the exploded query comment

The shipped comment is one line now, without the implementation note.
Fix the fixture description, which claimed four style/explode
combinations where it covers three, and retitle the test.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* test: [dart] keep the shared fixture byte-identical with the other ports

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
@pull pull Bot locked and limited conversation to collaborators Sep 24, 2026
@pull pull Bot added the ⤵️ pull label Sep 24, 2026
@pull
pull Bot merged commit 8932249 into transparencies:master Sep 24, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants