-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
804c0c3
commit 0a522cd
Showing
9 changed files
with
1,559 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
# yaml-language-server: $schema=https://raw.githubusercontent.com/deepmap/oapi-codegen/HEAD/configuration-schema.json | ||
package: apis | ||
generate: | ||
client: true | ||
output: pkg/apis/client.gen.go | ||
output: ../pkg/apis/client.gen.go | ||
output-options: | ||
skip-prune: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
# yaml-language-server: $schema=https://raw.githubusercontent.com/deepmap/oapi-codegen/HEAD/configuration-schema.json | ||
package: apis | ||
generate: | ||
models: true | ||
embedded-spec: true | ||
output: pkg/apis/models.gen.go | ||
output: ../pkg/apis/models.gen.go | ||
output-options: | ||
skip-prune: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
# yaml-language-server: $schema=https://raw.githubusercontent.com/deepmap/oapi-codegen/HEAD/configuration-schema.json | ||
package: apis | ||
generate: | ||
fiber-server: true | ||
strict-server: true | ||
output: pkg/apis/server.gen.go | ||
output: ../pkg/apis/server.gen.go | ||
output-options: | ||
skip-prune: true | ||
|
||
|
||
import-mapping: | ||
./schemas/version.yml: github.com/zeiss/typhoon/api/schemas |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
//go:build generate | ||
// +build generate | ||
|
||
package api | ||
|
||
//go:generate npx -y @redocly/openapi-cli@latest bundle api.yml -o out.yml | ||
//go:generate go run -modfile ../tools/go.mod github.com/deepmap/oapi-codegen/v2/cmd/oapi-codegen -config config.client.yml out.yml | ||
//go:generate go run -modfile ../tools/go.mod github.com/deepmap/oapi-codegen/v2/cmd/oapi-codegen -config config.server.yml out.yml | ||
//go:generate go run -modfile ../tools/go.mod github.com/deepmap/oapi-codegen/v2/cmd/oapi-codegen -config config.models.yml out.yml |
Oops, something went wrong.