Skip to content

Commit

Permalink
update php samples
Browse files Browse the repository at this point in the history
  • Loading branch information
wing328 committed Aug 7, 2024
1 parent aea5360 commit 4b49335
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,11 @@ public static function toQueryValue(

$value = $flattenArray($value, $paramName);

// https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#style-values
if ($openApiType === 'array' && $style === 'deepObject' && $explode) {
return $value;
}

if ($openApiType === 'object' && ($style === 'deepObject' || $explode)) {
return $value;
}
Expand Down

0 comments on commit 4b49335

Please sign in to comment.