forked from loafle/openapi-generator-original
Use gitHost instead of github.com (#15720)
This commit is contained in:
parent
05b9a899e4
commit
65bee03e21
@ -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"
|
||||
|
@ -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}}
|
||||
|
@ -1,4 +1,4 @@
|
||||
module github.com/{{{gitUserId}}}/{{{gitRepoId}}}
|
||||
module {{{gitHost}}}/{{{gitUserId}}}/{{{gitRepoId}}}
|
||||
|
||||
go 1.16
|
||||
|
||||
|
@ -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"
|
||||
)
|
||||
|
@ -1,4 +1,4 @@
|
||||
module github.com/GIT_USER_ID/GIT_REPO_ID
|
||||
module gitlab.com/openapitools/petstore
|
||||
|
||||
go 1.16
|
||||
|
||||
|
@ -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"
|
||||
)
|
||||
|
@ -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"
|
||||
)
|
||||
|
@ -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"
|
||||
)
|
||||
|
@ -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"
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user