From 957db1362f98b4f957d1249dede39ec1e1ef69bd Mon Sep 17 00:00:00 2001 From: astaxie Date: Mon, 8 Aug 2016 16:45:11 +0800 Subject: [PATCH] update swagger definistion --- swagger/swagger.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/swagger/swagger.go b/swagger/swagger.go index e48dcf1e..069731dd 100644 --- a/swagger/swagger.go +++ b/swagger/swagger.go @@ -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"`