Merge remote-tracking branch 'origin' into sync_master_230

This commit is contained in:
wing328
2017-02-10 23:31:36 +08:00
1480 changed files with 60531 additions and 12438 deletions

View File

@@ -55,6 +55,7 @@ Class | Method | HTTP request | Description
- [ArrayOfArrayOfNumberOnly](docs/ArrayOfArrayOfNumberOnly.md)
- [ArrayOfNumberOnly](docs/ArrayOfNumberOnly.md)
- [ArrayTest](docs/ArrayTest.md)
- [Capitalization](docs/Capitalization.md)
- [Cat](docs/Cat.md)
- [Category](docs/Category.md)
- [ClassModel](docs/ClassModel.md)

View File

@@ -12,7 +12,7 @@ package petstore
type Animal struct {
ClassName string `json:"className,omitempty"`
ClassName string `json:"className"`
Color string `json:"color,omitempty"`
}

View File

@@ -0,0 +1,27 @@
/*
* Swagger Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
package petstore
type Capitalization struct {
SmallCamel string `json:"smallCamel,omitempty"`
CapitalCamel string `json:"CapitalCamel,omitempty"`
SmallSnake string `json:"small_Snake,omitempty"`
CapitalSnake string `json:"Capital_Snake,omitempty"`
SCAETHFlowPoints string `json:"SCA_ETH_Flow_Points,omitempty"`
// Name of the pet
ATT_NAME string `json:"ATT_NAME,omitempty"`
}

View File

@@ -12,7 +12,7 @@ package petstore
type Cat struct {
ClassName string `json:"className,omitempty"`
ClassName string `json:"className"`
Color string `json:"color,omitempty"`

View File

@@ -0,0 +1,15 @@
# Capitalization
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**SmallCamel** | **string** | | [optional] [default to null]
**CapitalCamel** | **string** | | [optional] [default to null]
**SmallSnake** | **string** | | [optional] [default to null]
**CapitalSnake** | **string** | | [optional] [default to null]
**SCAETHFlowPoints** | **string** | | [optional] [default to null]
**ATT_NAME** | **string** | Name of the pet | [optional] [default to null]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -12,7 +12,7 @@ package petstore
type Dog struct {
ClassName string `json:"className,omitempty"`
ClassName string `json:"className"`
Color string `json:"color,omitempty"`

View File

@@ -1,4 +1,4 @@
/*
/*
* Swagger Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
@@ -11,10 +11,10 @@
package petstore
import (
"encoding/json"
"net/url"
"strings"
"time"
"encoding/json"
)
type FakeApi struct {
@@ -62,7 +62,7 @@ func (a FakeApi) TestClientModel(body Client) (*Client, *APIResponse, error) {
}
// to determine the Content-Type header
localVarHttpContentTypes := []string{ "application/json", }
localVarHttpContentTypes := []string{"application/json"}
// set Content-Type header
localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes)
@@ -72,7 +72,7 @@ func (a FakeApi) TestClientModel(body Client) (*Client, *APIResponse, error) {
// to determine the Accept header
localVarHttpHeaderAccepts := []string{
"application/json",
}
}
// set Accept header
localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts)
@@ -100,8 +100,8 @@ func (a FakeApi) TestClientModel(body Client) (*Client, *APIResponse, error) {
}
/**
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
*
* @param number None
* @param double None
@@ -118,7 +118,7 @@ func (a FakeApi) TestClientModel(body Client) (*Client, *APIResponse, error) {
* @param "dateTime" (time.Time) None
* @param "password" (string) None
* @param "callback" (string) None
* @return
* @return
*/
func (a FakeApi) TestEndpointParameters(number float32, double float64, patternWithoutDelimiter string, byte_ string, localVarOptionals map[string]interface{}) (*APIResponse, error) {
@@ -134,8 +134,8 @@ func (a FakeApi) TestEndpointParameters(number float32, double float64, patternW
var localVarFileBytes []byte
// authentication '(http_basic_test)' required
// http basic authentication required
if a.Configuration.Username != "" || a.Configuration.Password != ""{
localVarHeaderParams["Authorization"] = "Basic " + a.Configuration.GetBasicAuthEncodedString()
if a.Configuration.Username != "" || a.Configuration.Password != "" {
localVarHeaderParams["Authorization"] = "Basic " + a.Configuration.GetBasicAuthEncodedString()
}
// add default headers if any
for key := range a.Configuration.DefaultHeader {
@@ -143,7 +143,7 @@ func (a FakeApi) TestEndpointParameters(number float32, double float64, patternW
}
// to determine the Content-Type header
localVarHttpContentTypes := []string{ "application/xml; charset=utf-8", "application/json; charset=utf-8", }
localVarHttpContentTypes := []string{"application/xml; charset=utf-8", "application/json; charset=utf-8"}
// set Content-Type header
localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes)
@@ -154,7 +154,7 @@ func (a FakeApi) TestEndpointParameters(number float32, double float64, patternW
localVarHttpHeaderAccepts := []string{
"application/xml; charset=utf-8",
"application/json; charset=utf-8",
}
}
// set Accept header
localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts)
@@ -224,7 +224,7 @@ func (a FakeApi) TestEndpointParameters(number float32, double float64, patternW
* @param "enumQueryString" (string) Query parameter enum test (string)
* @param "enumQueryInteger" (int32) Query parameter enum test (double)
* @param "enumQueryDouble" (float64) Query parameter enum test (double)
* @return
* @return
*/
func (a FakeApi) TestEnumParameters(localVarOptionals map[string]interface{}) (*APIResponse, error) {
@@ -254,7 +254,7 @@ func (a FakeApi) TestEnumParameters(localVarOptionals map[string]interface{}) (*
}
// to determine the Content-Type header
localVarHttpContentTypes := []string{ "*/*", }
localVarHttpContentTypes := []string{"*/*"}
// set Content-Type header
localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes)
@@ -264,7 +264,7 @@ func (a FakeApi) TestEnumParameters(localVarOptionals map[string]interface{}) (*
// to determine the Accept header
localVarHttpHeaderAccepts := []string{
"*/*",
}
}
// set Accept header
localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts)
@@ -301,4 +301,3 @@ func (a FakeApi) TestEnumParameters(localVarOptionals map[string]interface{}) (*
}
return localVarAPIResponse, err
}

View File

@@ -22,7 +22,7 @@ type FormatTest struct {
Int64_ int64 `json:"int64,omitempty"`
Number float32 `json:"number,omitempty"`
Number float32 `json:"number"`
Float float32 `json:"float,omitempty"`
@@ -30,15 +30,15 @@ type FormatTest struct {
String_ string `json:"string,omitempty"`
Byte_ string `json:"byte,omitempty"`
Byte_ string `json:"byte"`
Binary string `json:"binary,omitempty"`
Date time.Time `json:"date,omitempty"`
Date time.Time `json:"date"`
DateTime time.Time `json:"dateTime,omitempty"`
Uuid string `json:"uuid,omitempty"`
Password string `json:"password,omitempty"`
Password string `json:"password"`
}

View File

@@ -13,7 +13,7 @@ package petstore
// Model for testing model name same as property name
type Name struct {
Name int32 `json:"name,omitempty"`
Name int32 `json:"name"`
SnakeCase int32 `json:"snake_case,omitempty"`

View File

@@ -16,9 +16,9 @@ type Pet struct {
Category Category `json:"category,omitempty"`
Name string `json:"name,omitempty"`
Name string `json:"name"`
PhotoUrls []string `json:"photoUrls,omitempty"`
PhotoUrls []string `json:"photoUrls"`
Tags []Tag `json:"tags,omitempty"`

View File

@@ -203,8 +203,8 @@ func (a PetApi) FindPetsByStatus(status []string) ([]Pet, *APIResponse, error) {
for key := range a.Configuration.DefaultHeader {
localVarHeaderParams[key] = a.Configuration.DefaultHeader[key]
}
var collectionFormat = "csv"
localVarQueryParams.Add("status", a.Configuration.APIClient.ParameterToString(status, collectionFormat))
var statusCollectionFormat = "csv"
localVarQueryParams.Add("status", a.Configuration.APIClient.ParameterToString(status, statusCollectionFormat))
// to determine the Content-Type header
localVarHttpContentTypes := []string{ }
@@ -271,8 +271,8 @@ func (a PetApi) FindPetsByTags(tags []string) ([]Pet, *APIResponse, error) {
for key := range a.Configuration.DefaultHeader {
localVarHeaderParams[key] = a.Configuration.DefaultHeader[key]
}
var collectionFormat = "csv"
localVarQueryParams.Add("tags", a.Configuration.APIClient.ParameterToString(tags, collectionFormat))
var tagsCollectionFormat = "csv"
localVarQueryParams.Add("tags", a.Configuration.APIClient.ParameterToString(tags, tagsCollectionFormat))
// to determine the Content-Type header
localVarHttpContentTypes := []string{ }