From 85910668c46f3ab36e99535c890af837984d0247 Mon Sep 17 00:00:00 2001 From: Emanuele Saccomandi Date: Thu, 29 Sep 2022 09:01:27 +0200 Subject: [PATCH] ci: updated go sdk to v2 --- templates/openapi-generator/go/README.mustache | 2 +- templates/openapi-generator/go/api.mustache | 2 +- templates/openapi-generator/go/api_doc.mustache | 4 ++-- templates/openapi-generator/go/go.mod.mustache | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/templates/openapi-generator/go/README.mustache b/templates/openapi-generator/go/README.mustache index 0af84ad8..6e143554 100644 --- a/templates/openapi-generator/go/README.mustache +++ b/templates/openapi-generator/go/README.mustache @@ -24,7 +24,7 @@ For more information, please visit [{{{infoUrl}}}]({{{infoUrl}}}) Install the following dependencies: ```shell -go get github.com/fattureincloud/fattureincloud-go-sdk +go get github.com/fattureincloud/fattureincloud-go-sdk/v2 ``` ## Documentation for API Endpoints diff --git a/templates/openapi-generator/go/api.mustache b/templates/openapi-generator/go/api.mustache index 0c618892..ca81bbbc 100644 --- a/templates/openapi-generator/go/api.mustache +++ b/templates/openapi-generator/go/api.mustache @@ -10,7 +10,7 @@ import ( "net/url" {{#imports}} "{{import}}" {{/imports}} - . "github.com/fattureincloud/fattureincloud-go-sdk/model" + . "github.com/fattureincloud/fattureincloud-go-sdk/v2/model" ) {{#generateInterfaces}} diff --git a/templates/openapi-generator/go/api_doc.mustache b/templates/openapi-generator/go/api_doc.mustache index e9ac1c7e..d65dd295 100644 --- a/templates/openapi-generator/go/api_doc.mustache +++ b/templates/openapi-generator/go/api_doc.mustache @@ -33,8 +33,8 @@ import ( {{#vendorExtensions.x-go-import}} {{{vendorExtensions.x-go-import}}} {{/vendorExtensions.x-go-import}} - {{goImportAlias}}api "{{gitHost}}/{{gitUserId}}/{{gitRepoId}}{{#isGoSubmodule}}/{{packageName}}{{/isGoSubmodule}}/api" - {{goImportAlias}} "{{gitHost}}/{{gitUserId}}/{{gitRepoId}}{{#isGoSubmodule}}/{{packageName}}{{/isGoSubmodule}}/model" + {{goImportAlias}}api "{{gitHost}}/{{gitUserId}}/{{gitRepoId}}{{#isGoSubmodule}}/{{packageName}}{{/isGoSubmodule}}/v2/api" + {{goImportAlias}} "{{gitHost}}/{{gitUserId}}/{{gitRepoId}}{{#isGoSubmodule}}/{{packageName}}{{/isGoSubmodule}}/v2/model" ) func main() { diff --git a/templates/openapi-generator/go/go.mod.mustache b/templates/openapi-generator/go/go.mod.mustache index 760a166e..770bfe5c 100644 --- a/templates/openapi-generator/go/go.mod.mustache +++ b/templates/openapi-generator/go/go.mod.mustache @@ -1,4 +1,4 @@ -module {{gitHost}}/{{gitUserId}}/{{gitRepoId}}{{#isGoSubmodule}}/{{packageName}}{{/isGoSubmodule}} +module {{gitHost}}/{{gitUserId}}/{{gitRepoId}}{{#isGoSubmodule}}/{{packageName}}{{/isGoSubmodule}}/v2 go 1.13