1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 12:00:55 +00:00

update swagger

This commit is contained in:
astaxie 2016-08-13 14:43:56 +08:00
parent 957db1362f
commit 1b4f30e11e

View File

@ -34,7 +34,7 @@ type Swagger struct {
SecurityDefinitions map[string]Scurity `json:"securityDefinitions,omitempty"`
Security map[string][]string `json:"security,omitempty"`
Tags []Tag `json:"tags,omitempty"`
ExternalDocs ExternalDocs `json:"externalDocs,omitempty"`
ExternalDocs *ExternalDocs `json:"externalDocs,omitempty"`
}
// Information Provides metadata about the API. The metadata can be used by the clients if needed.
@ -42,7 +42,7 @@ type Information struct {
Title string `json:"title,omitempty"`
Description string `json:"description,omitempty"`
Version string `json:"version,omitempty"`
TermsOfServiceURL string `json:"termsOfServiceUrl,omitempty"`
TermsOfService string `json:"termsOfService,omitempty"`
Contact Contact `json:"contact,omitempty"`
License License `json:"license,omitempty"`
@ -93,7 +93,7 @@ type Parameter struct {
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
Required bool `json:"required,omitempty"`
Schema Schema `json:"schema,omitempty"`
Schema *Schema `json:"schema,omitempty"`
Type string `json:"type,omitempty"`
Format string `json:"format,omitempty"`
}
@ -121,12 +121,13 @@ type Propertie struct {
Format string `json:"format,omitempty"`
ReadOnly bool `json:"readOnly,omitempty"`
Properties map[string]Propertie `json:"properties,omitempty"`
AdditionalProperties *Propertie `json:"additionalProperties,omitempty"`
}
// Response as they are returned from executing this operation.
type Response struct {
Description string `json:"description,omitempty"`
Schema Schema `json:"schema,omitempty"`
Schema *Schema `json:"schema,omitempty"`
Ref string `json:"$ref,omitempty"`
}
@ -146,7 +147,7 @@ type Scurity struct {
type Tag struct {
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
ExternalDocs ExternalDocs `json:"externalDocs,omitempty"`
ExternalDocs *ExternalDocs `json:"externalDocs,omitempty"`
}
// ExternalDocs include Additional external documentation