Skip to content

Commit 1286321

Browse files
authored
Merge pull request #42 from python-lapidary/fix/explode-default-none
fix: Change default explode value to None.
2 parents 534df70 + 3044933 commit 1286321

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

openapi_pydantic/v3/v3_0_3/encoding.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class Encoding(BaseModel):
5959
the request body media type is not `application/x-www-form-urlencoded`.
6060
"""
6161

62-
explode: bool = False
62+
explode: Optional[bool] = None
6363
"""
6464
When this is true, property values of type `array` or `object` generate separate
6565
parameters for each value of the array, or key-value-pair of the map.

openapi_pydantic/v3/v3_0_3/parameter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ class ParameterBase(BaseModel):
115115
- for `cookie` - `form`.
116116
"""
117117

118-
explode: bool = False
118+
explode: Optional[bool] = None
119119
"""
120120
When this is true, parameter values of type `array` or `object` generate separate
121121
parameters for each value of the array or key-value pair of the map.

openapi_pydantic/v3/v3_1_0/encoding.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class Encoding(BaseModel):
6161
[`contentType`](#encodingContentType) (implicit or explicit) SHALL be ignored.
6262
"""
6363

64-
explode: bool = False
64+
explode: Optional[bool] = None
6565
"""
6666
When this is true, property values of type `array` or `object` generate separate
6767
parameters for each value of the array, or key-value-pair of the map.

openapi_pydantic/v3/v3_1_0/parameter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ class ParameterBase(BaseModel):
115115
- for `cookie` - `form`.
116116
"""
117117

118-
explode: bool = False
118+
explode: Optional[bool] = None
119119
"""
120120
When this is true, parameter values of type `array` or `object` generate separate
121121
parameters for each value of the array or key-value pair of the map.

0 commit comments

Comments
 (0)