mirror of
https://github.com/Fishwaldo/huma.git
synced 2025-03-15 19:31:27 +00:00
fix: do not explode query params be default
This commit is contained in:
parent
71ffa25c67
commit
626a54ba2d
1 changed files with 5 additions and 0 deletions
|
@ -31,6 +31,7 @@ type openAPIParam struct {
|
|||
Schema *schema.Schema `json:"schema,omitempty"`
|
||||
Deprecated bool `json:"deprecated,omitempty"`
|
||||
Example interface{} `json:"example,omitempty"`
|
||||
Explode *bool `json:"explode,omitempty"`
|
||||
|
||||
// Internal params are excluded from the OpenAPI document and can set up
|
||||
// params sent between a load balander / proxy and the service internally.
|
||||
|
@ -48,6 +49,10 @@ func newOpenAPIParam(name, description string, in paramLocation, options ...Para
|
|||
In: in,
|
||||
}
|
||||
|
||||
if in == inQuery {
|
||||
p.Explode = new(bool)
|
||||
}
|
||||
|
||||
for _, option := range options {
|
||||
option.applyParam(p)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue