mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 12:00:55 +00:00
update swagger definistion
This commit is contained in:
parent
01c3812520
commit
957db1362f
@ -29,7 +29,7 @@ type Swagger struct {
|
||||
Schemes []string `json:"schemes,omitempty"`
|
||||
Consumes []string `json:"consumes,omitempty"`
|
||||
Produces []string `json:"produces,omitempty"`
|
||||
Paths map[string]Item `json:"paths"`
|
||||
Paths map[string]*Item `json:"paths"`
|
||||
Definitions map[string]Schema `json:"definitions,omitempty"`
|
||||
SecurityDefinitions map[string]Scurity `json:"securityDefinitions,omitempty"`
|
||||
Security map[string][]string `json:"security,omitempty"`
|
||||
@ -111,6 +111,7 @@ type Schema struct {
|
||||
|
||||
// Propertie are taken from the JSON Schema definition but their definitions were adjusted to the Swagger Specification
|
||||
type Propertie struct {
|
||||
Ref string `json:"$ref,omitempty"`
|
||||
Title string `json:"title,omitempty"`
|
||||
Description string `json:"description,omitempty"`
|
||||
Default string `json:"default,omitempty"`
|
||||
|
Loading…
Reference in New Issue
Block a user