Skip to content

Commit e441c24

Browse files
Dragos NedelcuDragos Nedelcu
authored andcommitted
Fix array query parameter serialization: use repeat format instead of comma format
OpenAPI spec uses style: form, explode: true for array parameters which requires repeat format (?provider=openai&provider=anthropic) not comma format (?provider=openai,anthropic)
1 parent 95eafb7 commit e441c24

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/not_diamond/_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def __init__(
120120
@property
121121
@override
122122
def qs(self) -> Querystring:
123-
return Querystring(array_format="comma")
123+
return Querystring(array_format="repeat")
124124

125125
@property
126126
@override
@@ -298,7 +298,7 @@ def __init__(
298298
@property
299299
@override
300300
def qs(self) -> Querystring:
301-
return Querystring(array_format="comma")
301+
return Querystring(array_format="repeat")
302302

303303
@property
304304
@override

0 commit comments

Comments
 (0)