Commit d4b9383
authored
fix: parse un-exploded query param to map (#101)
This fixes an issue where query parameters
that are objects with additional properties
cannot be parsed into their values. For example,
a query parameter like `tags=foo,bar,bim,baz` should
end up becoming:
```go
map[string]string{
"foo": "bar",
"bim": "baz",
}
```
This adheres to the [spec](https://swagger.io/docs/specification/v3_0/serialization/#query-parameters)
for paramters of style=form and explode=false.
Fixes: oapi-codegen/oapi-codegen#698
Signed-off-by: Alex Dulin <alex@morningconsult.com>1 parent bfe9ff9 commit d4b9383
2 files changed
+16
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
508 | 508 | | |
509 | 509 | | |
510 | 510 | | |
511 | | - | |
| 511 | + | |
512 | 512 | | |
513 | 513 | | |
514 | 514 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
542 | 542 | | |
543 | 543 | | |
544 | 544 | | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
545 | 560 | | |
546 | 561 | | |
547 | 562 | | |
| |||
0 commit comments