forked from loafle/openapi-generator-original
update go client, server petstore samples (#365)
This commit is contained in:
@@ -1 +1 @@
|
||||
3.0.0-SNAPSHOT
|
||||
3.0.3-SNAPSHOT
|
||||
File diff suppressed because it is too large
Load Diff
@@ -730,7 +730,7 @@ To test enum parameters
|
||||
* @param "EnumQueryString" (optional.String) - Query parameter enum test (string)
|
||||
* @param "EnumQueryInteger" (optional.Int32) - Query parameter enum test (double)
|
||||
* @param "EnumQueryDouble" (optional.Float64) - Query parameter enum test (double)
|
||||
* @param "EnumFormStringArray" (optional.[]string) - Form parameter enum test (string array)
|
||||
* @param "EnumFormStringArray" (optional.Interface of []string) - Form parameter enum test (string array)
|
||||
* @param "EnumFormString" (optional.String) - Form parameter enum test (string)
|
||||
*/
|
||||
|
||||
@@ -741,7 +741,7 @@ type TestEnumParametersOpts struct {
|
||||
EnumQueryString optional.String
|
||||
EnumQueryInteger optional.Int32
|
||||
EnumQueryDouble optional.Float64
|
||||
EnumFormStringArray optional.[]string
|
||||
EnumFormStringArray optional.Interface
|
||||
EnumFormString optional.String
|
||||
}
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ func (c contextKey) String() string {
|
||||
}
|
||||
|
||||
var (
|
||||
// ContextOAuth2 takes a oauth2.TokenSource as authentication for the request.
|
||||
// ContextOAuth2 takes an oauth2.TokenSource as authentication for the request.
|
||||
ContextOAuth2 = contextKey("token")
|
||||
|
||||
// ContextBasicAuth takes BasicAuth as authentication for the request.
|
||||
|
||||
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
|
||||
**EnumStringRequired** | **string** | |
|
||||
**EnumInteger** | **int32** | | [optional]
|
||||
**EnumNumber** | **float64** | | [optional]
|
||||
**OuterEnum** | [***OuterEnum**](OuterEnum.md) | | [optional]
|
||||
**OuterEnum** | [**OuterEnum**](OuterEnum.md) | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
@@ -287,7 +287,7 @@ Name | Type | Description | Notes
|
||||
**enumQueryString** | **optional.String**| Query parameter enum test (string) | [default to -efg]
|
||||
**enumQueryInteger** | **optional.Int32**| Query parameter enum test (double) |
|
||||
**enumQueryDouble** | **optional.Float64**| Query parameter enum test (double) |
|
||||
**enumFormStringArray** | **optional.[]string**| Form parameter enum test (string array) | [default to $]
|
||||
**enumFormStringArray** | [**optional.Interface of []string**](string.md)| Form parameter enum test (string array) | [default to $]
|
||||
**enumFormString** | **optional.String**| Form parameter enum test (string) | [default to -efg]
|
||||
|
||||
### Return type
|
||||
|
||||
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
|
||||
**Double** | **float64** | | [optional]
|
||||
**String** | **string** | | [optional]
|
||||
**Byte** | **string** | |
|
||||
**Binary** | [****os.File**](*os.File.md) | | [optional]
|
||||
**Binary** | [***os.File**](*os.File.md) | | [optional]
|
||||
**Date** | **string** | |
|
||||
**DateTime** | [**time.Time**](time.Time.md) | | [optional]
|
||||
**Uuid** | **string** | | [optional]
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Id** | **int64** | | [optional]
|
||||
**Category** | [***Category**](Category.md) | | [optional]
|
||||
**Category** | [**Category**](Category.md) | | [optional]
|
||||
**Name** | **string** | |
|
||||
**PhotoUrls** | **[]string** | |
|
||||
**Tags** | [**[]Tag**](Tag.md) | | [optional]
|
||||
|
||||
@@ -14,5 +14,5 @@ type EnumTest struct {
|
||||
EnumStringRequired string `json:"enum_string_required" xml:"enum_string_required"`
|
||||
EnumInteger int32 `json:"enum_integer,omitempty" xml:"enum_integer"`
|
||||
EnumNumber float64 `json:"enum_number,omitempty" xml:"enum_number"`
|
||||
OuterEnum *OuterEnum `json:"outerEnum,omitempty" xml:"outerEnum"`
|
||||
OuterEnum OuterEnum `json:"outerEnum,omitempty" xml:"outerEnum"`
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ type FormatTest struct {
|
||||
Double float64 `json:"double,omitempty" xml:"double"`
|
||||
String string `json:"string,omitempty" xml:"string"`
|
||||
Byte string `json:"byte" xml:"byte"`
|
||||
Binary **os.File `json:"binary,omitempty" xml:"binary"`
|
||||
Binary *os.File `json:"binary,omitempty" xml:"binary"`
|
||||
Date string `json:"date" xml:"date"`
|
||||
DateTime time.Time `json:"dateTime,omitempty" xml:"dateTime"`
|
||||
Uuid string `json:"uuid,omitempty" xml:"uuid"`
|
||||
|
||||
@@ -11,7 +11,7 @@ package petstore
|
||||
|
||||
type Pet struct {
|
||||
Id int64 `json:"id,omitempty" xml:"id"`
|
||||
Category *Category `json:"category,omitempty" xml:"category"`
|
||||
Category Category `json:"category,omitempty" xml:"category"`
|
||||
Name string `json:"name" xml:"name"`
|
||||
PhotoUrls []string `json:"photoUrls" xml:"photoUrls"`
|
||||
Tags []Tag `json:"tags,omitempty" xml:"tags"`
|
||||
|
||||
@@ -1 +1 @@
|
||||
3.0.0-SNAPSHOT
|
||||
3.0.3-SNAPSHOT
|
||||
File diff suppressed because it is too large
Load Diff
@@ -24,7 +24,7 @@ func (c contextKey) String() string {
|
||||
}
|
||||
|
||||
var (
|
||||
// ContextOAuth2 takes a oauth2.TokenSource as authentication for the request.
|
||||
// ContextOAuth2 takes an oauth2.TokenSource as authentication for the request.
|
||||
ContextOAuth2 = contextKey("token")
|
||||
|
||||
// ContextBasicAuth takes BasicAuth as authentication for the request.
|
||||
|
||||
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
|
||||
**EnumStringRequired** | **string** | |
|
||||
**EnumInteger** | **int32** | | [optional]
|
||||
**EnumNumber** | **float64** | | [optional]
|
||||
**OuterEnum** | [***OuterEnum**](OuterEnum.md) | | [optional]
|
||||
**OuterEnum** | [**OuterEnum**](OuterEnum.md) | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
|
||||
**Double** | **float64** | | [optional]
|
||||
**String** | **string** | | [optional]
|
||||
**Byte** | **string** | |
|
||||
**Binary** | [****os.File**](*os.File.md) | | [optional]
|
||||
**Binary** | [***os.File**](*os.File.md) | | [optional]
|
||||
**Date** | **string** | |
|
||||
**DateTime** | [**time.Time**](time.Time.md) | | [optional]
|
||||
**Uuid** | **string** | | [optional]
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Id** | **int64** | | [optional]
|
||||
**Category** | [***Category**](Category.md) | | [optional]
|
||||
**Category** | [**Category**](Category.md) | | [optional]
|
||||
**Name** | **string** | |
|
||||
**PhotoUrls** | **[]string** | |
|
||||
**Tags** | [**[]Tag**](Tag.md) | | [optional]
|
||||
|
||||
@@ -14,5 +14,5 @@ type EnumTest struct {
|
||||
EnumStringRequired string `json:"enum_string_required"`
|
||||
EnumInteger int32 `json:"enum_integer,omitempty"`
|
||||
EnumNumber float64 `json:"enum_number,omitempty"`
|
||||
OuterEnum *OuterEnum `json:"outerEnum,omitempty"`
|
||||
OuterEnum OuterEnum `json:"outerEnum,omitempty"`
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ type FormatTest struct {
|
||||
Double float64 `json:"double,omitempty"`
|
||||
String string `json:"string,omitempty"`
|
||||
Byte string `json:"byte"`
|
||||
Binary **os.File `json:"binary,omitempty"`
|
||||
Binary *os.File `json:"binary,omitempty"`
|
||||
Date string `json:"date"`
|
||||
DateTime time.Time `json:"dateTime,omitempty"`
|
||||
Uuid string `json:"uuid,omitempty"`
|
||||
|
||||
@@ -11,7 +11,7 @@ package petstore
|
||||
|
||||
type Pet struct {
|
||||
Id int64 `json:"id,omitempty"`
|
||||
Category *Category `json:"category,omitempty"`
|
||||
Category Category `json:"category,omitempty"`
|
||||
Name string `json:"name"`
|
||||
PhotoUrls []string `json:"photoUrls"`
|
||||
Tags []Tag `json:"tags,omitempty"`
|
||||
|
||||
@@ -1 +1 @@
|
||||
3.0.1-SNAPSHOT
|
||||
3.0.3-SNAPSHOT
|
||||
Reference in New Issue
Block a user