Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
beego
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
beego
Commits
9224cd3e
Commit
9224cd3e
authored
Aug 20, 2016
by
tnextday
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add ParameterItems in Parameter
parent
ffd748bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
7 deletions
+18
-7
swagger.go
swagger/swagger.go
+18
-7
No files found.
swagger/swagger.go
View file @
9224cd3e
...
...
@@ -89,13 +89,24 @@ type Operation struct {
// Parameter Describes a single operation parameter.
type
Parameter
struct
{
In
string
`json:"in,omitempty"`
Name
string
`json:"name,omitempty"`
Description
string
`json:"description,omitempty"`
Required
bool
`json:"required,omitempty"`
Schema
*
Schema
`json:"schema,omitempty"`
Type
string
`json:"type,omitempty"`
Format
string
`json:"format,omitempty"`
In
string
`json:"in,omitempty"`
Name
string
`json:"name,omitempty"`
Description
string
`json:"description,omitempty"`
Required
bool
`json:"required,omitempty"`
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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment