1
0
mirror of https://github.com/astaxie/beego.git synced 2024-06-26 18:34:13 +00:00

add ParameterItems in Parameter

This commit is contained in:
tnextday 2016-08-20 11:22:03 +08:00
parent ffd748bf75
commit 9224cd3ef7

View File

@ -96,6 +96,17 @@ type Parameter struct {
Schema *Schema `json:"schema,omitempty"`
Type string `json:"type,omitempty"`
Format string `json:"format,omitempty"`
Items *ParameterItems `json:"items,omitempty"`
}
// A limited subset of JSON-Schema's items object. It is used by parameter definitions that are not located in "body".
// http://swagger.io/specification/#itemsObject
type ParameterItems struct {
Type string `json:"type,omitempty"`
Format string `json:"format,omitempty"`
Items []*ParameterItems `json:"items,omitempty"` //Required if type is "array". Describes the type of items in the array.
CollectionFormat string `json:"collectionFormat,omitempty"`
Default string `json:"default,omitempty"`
}
// Schema Object allows the definition of input and output data types.