This commit is contained in:
BurningDrsn 2019-09-19 07:56:11 +00:00 committed by GitHub
commit d7fc8b007f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -832,6 +832,7 @@ func setParamType(para *swagger.Parameter, typ string, pkgpath, controllerName s
Type: paraType, Type: paraType,
Format: paraFormat, Format: paraFormat,
} }
para.CollectionFormat = "multi"
} }
} else { } else {
para.Type = paraType para.Type = paraType

View File

@ -98,6 +98,7 @@ type Parameter struct {
Type string `json:"type,omitempty" yaml:"type,omitempty"` Type string `json:"type,omitempty" yaml:"type,omitempty"`
Format string `json:"format,omitempty" yaml:"format,omitempty"` Format string `json:"format,omitempty" yaml:"format,omitempty"`
Items *ParameterItems `json:"items,omitempty" yaml:"items,omitempty"` Items *ParameterItems `json:"items,omitempty" yaml:"items,omitempty"`
CollectionFormat string `json:"collectionFormat,omitempty" yaml:"collectionFormat,omitempty"`
Default interface{} `json:"default,omitempty" yaml:"default,omitempty"` Default interface{} `json:"default,omitempty" yaml:"default,omitempty"`
} }