From 814e4ac031eda0b7aae6b77c600a86a99522e384 Mon Sep 17 00:00:00 2001 From: JessonChan Date: Fri, 15 Jan 2016 14:14:09 +0800 Subject: [PATCH] rename the docsSepc to docs_spec --- swagger/{docsSpec.go => docs_spec.go} | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) rename swagger/{docsSpec.go => docs_spec.go} (97%) diff --git a/swagger/docsSpec.go b/swagger/docs_spec.go similarity index 97% rename from swagger/docsSpec.go rename to swagger/docs_spec.go index 1874da42..d8402aa5 100644 --- a/swagger/docsSpec.go +++ b/swagger/docs_spec.go @@ -23,8 +23,8 @@ type ResourceListing struct { APIVersion string `json:"apiVersion"` SwaggerVersion string `json:"swaggerVersion"` // e.g 1.2 // BasePath string `json:"basePath"` obsolete in 1.1 - APIs []APIRef `json:"apis"` - Infos Infomation `json:"info"` + APIs []APIRef `json:"apis"` + Info Information `json:"info"` } // APIRef description the api path and description @@ -33,8 +33,8 @@ type APIRef struct { Description string `json:"description"` } -// Infomation show the API Infomation -type Infomation struct { +// Information show the API Information +type Information struct { Title string `json:"title,omitempty"` Description string `json:"description,omitempty"` Contact string `json:"contact,omitempty"`