Skip to content

Commit

Permalink
Use gitHost instead of github.com (#15720)
Browse files Browse the repository at this point in the history
  • Loading branch information
osechet committed Jun 3, 2023
1 parent 05b9a89 commit 65bee03
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 8 deletions.
3 changes: 3 additions & 0 deletions bin/configs/go-echo-server-petstore-new.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@ generatorName: go-echo-server
outputDir: samples/server/petstore/go-echo-server
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
templateDir: modules/openapi-generator/src/main/resources/go-echo-server
gitHost: gitlab.com
gitUserId: openapitools
gitRepoId: petstore
additionalProperties:
hideGenerationTimestamp: "true"
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package handlers
{{#operations}}
import (
"github.com/{{{gitUserId}}}/{{{gitRepoId}}}/models"
"{{{gitHost}}}/{{{gitUserId}}}/{{{gitRepoId}}}/models"
"github.com/labstack/echo/v4"
"net/http"
){{#operation}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/{{{gitUserId}}}/{{{gitRepoId}}}
module {{{gitHost}}}/{{{gitUserId}}}/{{{gitRepoId}}}

go 1.16

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package main

import (
"github.com/{{{gitUserId}}}/{{{gitRepoId}}}/handlers"
"{{{gitHost}}}/{{{gitUserId}}}/{{{gitRepoId}}}/handlers"
"github.com/labstack/echo/v4"
"github.com/labstack/echo/v4/middleware"
)
Expand Down
2 changes: 1 addition & 1 deletion samples/server/petstore/go-echo-server/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/GIT_USER_ID/GIT_REPO_ID
module gitlab.com/openapitools/petstore

go 1.16

Expand Down
2 changes: 1 addition & 1 deletion samples/server/petstore/go-echo-server/handlers/api_pet.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package handlers
import (
"github.com/GIT_USER_ID/GIT_REPO_ID/models"
"gitlab.com/openapitools/petstore/models"
"github.com/labstack/echo/v4"
"net/http"
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package handlers
import (
"github.com/GIT_USER_ID/GIT_REPO_ID/models"
"gitlab.com/openapitools/petstore/models"
"github.com/labstack/echo/v4"
"net/http"
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package handlers
import (
"github.com/GIT_USER_ID/GIT_REPO_ID/models"
"gitlab.com/openapitools/petstore/models"
"github.com/labstack/echo/v4"
"net/http"
)
Expand Down
2 changes: 1 addition & 1 deletion samples/server/petstore/go-echo-server/main.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package main

import (
"github.com/GIT_USER_ID/GIT_REPO_ID/handlers"
"gitlab.com/openapitools/petstore/handlers"
"github.com/labstack/echo/v4"
"github.com/labstack/echo/v4/middleware"
)
Expand Down

0 comments on commit 65bee03

Please sign in to comment.