Fix the examples and import path in golang client documents (#14612)

* Correct import

* Fix generated client doc when there is no response body

* generate samples
This commit is contained in:
Masato Yagi
2023-02-03 22:44:45 +09:00
committed by GitHub
parent 6b0644115b
commit d8f777d707
15 changed files with 123 additions and 123 deletions

View File

@@ -32,7 +32,7 @@ import (
{{#vendorExtensions.x-go-import}}
{{{vendorExtensions.x-go-import}}}
{{/vendorExtensions.x-go-import}}
{{goImportAlias}} "./openapi"
{{goImportAlias}} "{{gitHost}}/{{gitUserId}}/{{gitRepoId}}{{#isGoSubmodule}}/{{packageName}}{{/isGoSubmodule}}"
)
func main() {
@@ -42,7 +42,7 @@ func main() {
configuration := {{goImportAlias}}.NewConfiguration()
apiClient := {{goImportAlias}}.NewAPIClient(configuration)
resp, r, err := apiClient.{{classname}}.{{operationId}}(context.Background(){{#pathParams}}, {{paramName}}{{/pathParams}}){{#allParams}}{{^isPathParam}}.{{vendorExtensions.x-export-param-name}}({{paramName}}){{/isPathParam}}{{/allParams}}.Execute()
{{#returnType}}resp, {{/returnType}}r, err := apiClient.{{classname}}.{{operationId}}(context.Background(){{#pathParams}}, {{paramName}}{{/pathParams}}){{#allParams}}{{^isPathParam}}.{{vendorExtensions.x-export-param-name}}({{paramName}}){{/isPathParam}}{{/allParams}}.Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `{{classname}}.{{operationId}}``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)

View File

@@ -25,7 +25,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {

View File

@@ -38,7 +38,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -46,7 +46,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.FakeApi.CreateXmlItem(context.Background()).XmlItem(xmlItem).Execute()
r, err := apiClient.FakeApi.CreateXmlItem(context.Background()).XmlItem(xmlItem).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FakeApi.CreateXmlItem``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -102,7 +102,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -168,7 +168,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -234,7 +234,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -300,7 +300,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -366,7 +366,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -374,7 +374,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.FakeApi.TestBodyWithFileSchema(context.Background()).Body(body).Execute()
r, err := apiClient.FakeApi.TestBodyWithFileSchema(context.Background()).Body(body).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FakeApi.TestBodyWithFileSchema``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -428,7 +428,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -437,7 +437,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.FakeApi.TestBodyWithQueryParams(context.Background()).Query(query).Body(body).Execute()
r, err := apiClient.FakeApi.TestBodyWithQueryParams(context.Background()).Query(query).Body(body).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FakeApi.TestBodyWithQueryParams``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -494,7 +494,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -561,7 +561,7 @@ import (
"fmt"
"os"
"time"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -582,7 +582,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.FakeApi.TestEndpointParameters(context.Background()).Number(number).Double(double).PatternWithoutDelimiter(patternWithoutDelimiter).Byte_(byte_).Integer(integer).Int32_(int32_).Int64_(int64_).Float(float).String_(string_).Binary(binary).Date(date).DateTime(dateTime).Password(password).Callback(callback).Execute()
r, err := apiClient.FakeApi.TestEndpointParameters(context.Background()).Number(number).Double(double).PatternWithoutDelimiter(patternWithoutDelimiter).Byte_(byte_).Integer(integer).Int32_(int32_).Int64_(int64_).Float(float).String_(string_).Binary(binary).Date(date).DateTime(dateTime).Password(password).Callback(callback).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FakeApi.TestEndpointParameters``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -651,7 +651,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -666,7 +666,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.FakeApi.TestEnumParameters(context.Background()).EnumHeaderStringArray(enumHeaderStringArray).EnumHeaderString(enumHeaderString).EnumQueryStringArray(enumQueryStringArray).EnumQueryString(enumQueryString).EnumQueryInteger(enumQueryInteger).EnumQueryDouble(enumQueryDouble).EnumFormStringArray(enumFormStringArray).EnumFormString(enumFormString).Execute()
r, err := apiClient.FakeApi.TestEnumParameters(context.Background()).EnumHeaderStringArray(enumHeaderStringArray).EnumHeaderString(enumHeaderString).EnumQueryStringArray(enumQueryStringArray).EnumQueryString(enumQueryString).EnumQueryInteger(enumQueryInteger).EnumQueryDouble(enumQueryDouble).EnumFormStringArray(enumFormStringArray).EnumFormString(enumFormString).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FakeApi.TestEnumParameters``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -729,7 +729,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -742,7 +742,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.FakeApi.TestGroupParameters(context.Background()).RequiredStringGroup(requiredStringGroup).RequiredBooleanGroup(requiredBooleanGroup).RequiredInt64Group(requiredInt64Group).StringGroup(stringGroup).BooleanGroup(booleanGroup).Int64Group(int64Group).Execute()
r, err := apiClient.FakeApi.TestGroupParameters(context.Background()).RequiredStringGroup(requiredStringGroup).RequiredBooleanGroup(requiredBooleanGroup).RequiredInt64Group(requiredInt64Group).StringGroup(stringGroup).BooleanGroup(booleanGroup).Int64Group(int64Group).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FakeApi.TestGroupParameters``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -801,7 +801,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -809,7 +809,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.FakeApi.TestInlineAdditionalProperties(context.Background()).Param(param).Execute()
r, err := apiClient.FakeApi.TestInlineAdditionalProperties(context.Background()).Param(param).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FakeApi.TestInlineAdditionalProperties``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -863,7 +863,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -872,7 +872,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.FakeApi.TestJsonFormData(context.Background()).Param(param).Param2(param2).Execute()
r, err := apiClient.FakeApi.TestJsonFormData(context.Background()).Param(param).Param2(param2).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FakeApi.TestJsonFormData``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -929,7 +929,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -941,7 +941,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.FakeApi.TestQueryParameterCollectionFormat(context.Background()).Pipe(pipe).Ioutil(ioutil).Http(http).Url(url).Context(context).Execute()
r, err := apiClient.FakeApi.TestQueryParameterCollectionFormat(context.Background()).Pipe(pipe).Ioutil(ioutil).Http(http).Url(url).Context(context).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FakeApi.TestQueryParameterCollectionFormat``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)

View File

@@ -25,7 +25,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {

View File

@@ -31,7 +31,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -39,7 +39,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.PetApi.AddPet(context.Background()).Body(body).Execute()
r, err := apiClient.PetApi.AddPet(context.Background()).Body(body).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PetApi.AddPet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -93,7 +93,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -102,7 +102,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.PetApi.DeletePet(context.Background(), petId).ApiKey(apiKey).Execute()
r, err := apiClient.PetApi.DeletePet(context.Background(), petId).ApiKey(apiKey).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PetApi.DeletePet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -163,7 +163,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -229,7 +229,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -295,7 +295,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -363,7 +363,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -371,7 +371,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.PetApi.UpdatePet(context.Background()).Body(body).Execute()
r, err := apiClient.PetApi.UpdatePet(context.Background()).Body(body).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PetApi.UpdatePet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -425,7 +425,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -435,7 +435,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.PetApi.UpdatePetWithForm(context.Background(), petId).Name(name).Status(status).Execute()
r, err := apiClient.PetApi.UpdatePetWithForm(context.Background(), petId).Name(name).Status(status).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PetApi.UpdatePetWithForm``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -495,7 +495,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -567,7 +567,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {

View File

@@ -28,7 +28,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -36,7 +36,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.StoreApi.DeleteOrder(context.Background(), orderId).Execute()
r, err := apiClient.StoreApi.DeleteOrder(context.Background(), orderId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `StoreApi.DeleteOrder``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -96,7 +96,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -157,7 +157,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -225,7 +225,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {

View File

@@ -32,7 +32,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -40,7 +40,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UserApi.CreateUser(context.Background()).Body(body).Execute()
r, err := apiClient.UserApi.CreateUser(context.Background()).Body(body).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserApi.CreateUser``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -94,7 +94,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -102,7 +102,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UserApi.CreateUsersWithArrayInput(context.Background()).Body(body).Execute()
r, err := apiClient.UserApi.CreateUsersWithArrayInput(context.Background()).Body(body).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserApi.CreateUsersWithArrayInput``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -156,7 +156,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -164,7 +164,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UserApi.CreateUsersWithListInput(context.Background()).Body(body).Execute()
r, err := apiClient.UserApi.CreateUsersWithListInput(context.Background()).Body(body).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserApi.CreateUsersWithListInput``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -220,7 +220,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -228,7 +228,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UserApi.DeleteUser(context.Background(), username).Execute()
r, err := apiClient.UserApi.DeleteUser(context.Background(), username).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserApi.DeleteUser``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -286,7 +286,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -354,7 +354,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -420,14 +420,14 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UserApi.LogoutUser(context.Background()).Execute()
r, err := apiClient.UserApi.LogoutUser(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserApi.LogoutUser``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -479,7 +479,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -488,7 +488,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UserApi.UpdateUser(context.Background(), username).Body(body).Execute()
r, err := apiClient.UserApi.UpdateUser(context.Background(), username).Body(body).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserApi.UpdateUser``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)

View File

@@ -28,7 +28,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -89,7 +89,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -150,7 +150,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -211,7 +211,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {

View File

@@ -25,7 +25,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {

View File

@@ -23,7 +23,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {

View File

@@ -38,7 +38,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -99,7 +99,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -165,7 +165,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -231,7 +231,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -297,7 +297,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -363,7 +363,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -371,7 +371,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.FakeApi.TestBodyWithFileSchema(context.Background()).FileSchemaTestClass(fileSchemaTestClass).Execute()
r, err := apiClient.FakeApi.TestBodyWithFileSchema(context.Background()).FileSchemaTestClass(fileSchemaTestClass).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FakeApi.TestBodyWithFileSchema``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -425,7 +425,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -434,7 +434,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.FakeApi.TestBodyWithQueryParams(context.Background()).Query(query).User(user).Execute()
r, err := apiClient.FakeApi.TestBodyWithQueryParams(context.Background()).Query(query).User(user).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FakeApi.TestBodyWithQueryParams``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -491,7 +491,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -558,7 +558,7 @@ import (
"fmt"
"os"
"time"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -579,7 +579,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.FakeApi.TestEndpointParameters(context.Background()).Number(number).Double(double).PatternWithoutDelimiter(patternWithoutDelimiter).Byte_(byte_).Integer(integer).Int32_(int32_).Int64_(int64_).Float(float).String_(string_).Binary(binary).Date(date).DateTime(dateTime).Password(password).Callback(callback).Execute()
r, err := apiClient.FakeApi.TestEndpointParameters(context.Background()).Number(number).Double(double).PatternWithoutDelimiter(patternWithoutDelimiter).Byte_(byte_).Integer(integer).Int32_(int32_).Int64_(int64_).Float(float).String_(string_).Binary(binary).Date(date).DateTime(dateTime).Password(password).Callback(callback).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FakeApi.TestEndpointParameters``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -648,7 +648,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -663,7 +663,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.FakeApi.TestEnumParameters(context.Background()).EnumHeaderStringArray(enumHeaderStringArray).EnumHeaderString(enumHeaderString).EnumQueryStringArray(enumQueryStringArray).EnumQueryString(enumQueryString).EnumQueryInteger(enumQueryInteger).EnumQueryDouble(enumQueryDouble).EnumFormStringArray(enumFormStringArray).EnumFormString(enumFormString).Execute()
r, err := apiClient.FakeApi.TestEnumParameters(context.Background()).EnumHeaderStringArray(enumHeaderStringArray).EnumHeaderString(enumHeaderString).EnumQueryStringArray(enumQueryStringArray).EnumQueryString(enumQueryString).EnumQueryInteger(enumQueryInteger).EnumQueryDouble(enumQueryDouble).EnumFormStringArray(enumFormStringArray).EnumFormString(enumFormString).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FakeApi.TestEnumParameters``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -726,7 +726,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -739,7 +739,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.FakeApi.TestGroupParameters(context.Background()).RequiredStringGroup(requiredStringGroup).RequiredBooleanGroup(requiredBooleanGroup).RequiredInt64Group(requiredInt64Group).StringGroup(stringGroup).BooleanGroup(booleanGroup).Int64Group(int64Group).Execute()
r, err := apiClient.FakeApi.TestGroupParameters(context.Background()).RequiredStringGroup(requiredStringGroup).RequiredBooleanGroup(requiredBooleanGroup).RequiredInt64Group(requiredInt64Group).StringGroup(stringGroup).BooleanGroup(booleanGroup).Int64Group(int64Group).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FakeApi.TestGroupParameters``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -800,7 +800,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -808,7 +808,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.FakeApi.TestInlineAdditionalProperties(context.Background()).RequestBody(requestBody).Execute()
r, err := apiClient.FakeApi.TestInlineAdditionalProperties(context.Background()).RequestBody(requestBody).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FakeApi.TestInlineAdditionalProperties``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -864,7 +864,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -873,7 +873,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.FakeApi.TestJsonFormData(context.Background()).Param(param).Param2(param2).Execute()
r, err := apiClient.FakeApi.TestJsonFormData(context.Background()).Param(param).Param2(param2).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FakeApi.TestJsonFormData``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -928,7 +928,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -937,7 +937,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.FakeApi.TestQueryDeepObject(context.Background()).TestPet(testPet).InputOptions(inputOptions).Execute()
r, err := apiClient.FakeApi.TestQueryDeepObject(context.Background()).TestPet(testPet).InputOptions(inputOptions).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FakeApi.TestQueryDeepObject``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -994,7 +994,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -1006,7 +1006,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.FakeApi.TestQueryParameterCollectionFormat(context.Background()).Pipe(pipe).Ioutil(ioutil).Http(http).Url(url).Context(context).Execute()
r, err := apiClient.FakeApi.TestQueryParameterCollectionFormat(context.Background()).Pipe(pipe).Ioutil(ioutil).Http(http).Url(url).Context(context).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FakeApi.TestQueryParameterCollectionFormat``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -1066,7 +1066,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {

View File

@@ -25,7 +25,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {

View File

@@ -33,7 +33,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -41,7 +41,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.PetApi.AddPet(context.Background()).Pet(pet).Execute()
r, err := apiClient.PetApi.AddPet(context.Background()).Pet(pet).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PetApi.AddPet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -97,7 +97,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -106,7 +106,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.PetApi.DeletePet(context.Background(), petId).ApiKey(apiKey).Execute()
r, err := apiClient.PetApi.DeletePet(context.Background(), petId).ApiKey(apiKey).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PetApi.DeletePet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -167,7 +167,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -233,7 +233,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -299,7 +299,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -369,7 +369,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -377,7 +377,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.PetApi.UpdatePet(context.Background()).Pet(pet).Execute()
r, err := apiClient.PetApi.UpdatePet(context.Background()).Pet(pet).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PetApi.UpdatePet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -433,7 +433,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -443,7 +443,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.PetApi.UpdatePetWithForm(context.Background(), petId).Name(name).Status(status).Execute()
r, err := apiClient.PetApi.UpdatePetWithForm(context.Background(), petId).Name(name).Status(status).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PetApi.UpdatePetWithForm``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -505,7 +505,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -579,7 +579,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {

View File

@@ -28,7 +28,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -36,7 +36,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.StoreApi.DeleteOrder(context.Background(), orderId).Execute()
r, err := apiClient.StoreApi.DeleteOrder(context.Background(), orderId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `StoreApi.DeleteOrder``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -96,7 +96,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -157,7 +157,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -227,7 +227,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {

View File

@@ -32,7 +32,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -40,7 +40,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UserApi.CreateUser(context.Background()).User(user).Execute()
r, err := apiClient.UserApi.CreateUser(context.Background()).User(user).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserApi.CreateUser``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -96,7 +96,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -104,7 +104,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UserApi.CreateUsersWithArrayInput(context.Background()).User(user).Execute()
r, err := apiClient.UserApi.CreateUsersWithArrayInput(context.Background()).User(user).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserApi.CreateUsersWithArrayInput``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -160,7 +160,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -168,7 +168,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UserApi.CreateUsersWithListInput(context.Background()).User(user).Execute()
r, err := apiClient.UserApi.CreateUsersWithListInput(context.Background()).User(user).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserApi.CreateUsersWithListInput``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -224,7 +224,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -232,7 +232,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UserApi.DeleteUser(context.Background(), username).Execute()
r, err := apiClient.UserApi.DeleteUser(context.Background(), username).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserApi.DeleteUser``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -292,7 +292,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -362,7 +362,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -430,14 +430,14 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UserApi.LogoutUser(context.Background()).Execute()
r, err := apiClient.UserApi.LogoutUser(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserApi.LogoutUser``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -489,7 +489,7 @@ import (
"context"
"fmt"
"os"
openapiclient "./openapi"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
@@ -498,7 +498,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UserApi.UpdateUser(context.Background(), username).User(user).Execute()
r, err := apiClient.UserApi.UpdateUser(context.Background(), username).User(user).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserApi.UpdateUser``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)