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
bed90765
Commit
bed90765
authored
Aug 22, 2016
by
astaxie
Committed by
GitHub
Aug 22, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2102 from tnextday/develop
update swagger ParameterItems
parents
efbde1ee
7253ff2f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
8 deletions
+19
-8
swagger.go
swagger/swagger.go
+19
-8
No files found.
swagger/swagger.go
View file @
bed90765
...
...
@@ -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.
...
...
@@ -106,7 +117,7 @@ type Schema struct {
Description
string
`json:"description,omitempty"`
Required
[]
string
`json:"required,omitempty"`
Type
string
`json:"type,omitempty"`
Items
*
Propertie
`json:"items,omitempty"`
Items
*
Schema
`json:"items,omitempty"`
Properties
map
[
string
]
Propertie
`json:"properties,omitempty"`
}
...
...
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