-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use new schema endpoint (#206)
- Loading branch information
Showing
15 changed files
with
534 additions
and
1,313 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -210,3 +210,4 @@ $RECYCLE.BIN/ | |
# Project specific | ||
|
||
./go-api-schemas | ||
*.json |
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,12 +1,34 @@ | ||
version: "3" | ||
|
||
tasks: | ||
curlSpec: | ||
cmds: | ||
- curl -so service_types.json https://api.aiven.io/v1/service_types | ||
curlSpecSensitive: | ||
requires: | ||
vars: | ||
- AIVEN_TOKEN | ||
- AIVEN_PROJECT_NAME | ||
cmds: | ||
- for: [integration_types, integration_endpoint_types] | ||
cmd: 'curl -so {{.ITEM}}.json https://api.aiven.io/v1/project/{{.AIVEN_PROJECT_NAME}}/{{.ITEM}} --header "Authorization: aivenv1 {{.AIVEN_TOKEN}}"' | ||
silent: true | ||
generate: | ||
cmds: | ||
- go run main.go service_types.json integration_types.json integration_endpoint_types.json | ||
run: | ||
cmds: | ||
- go run main.go | ||
- task: curlSpec | ||
- task: curlSpecSensitive | ||
- task: generate | ||
build: | ||
cmds: | ||
- go build | ||
test: | ||
cmds: | ||
- go test -v ./... | ||
curlDist: | ||
desc: During the development, the diff might change multiple times. Downloads files from main | ||
cmds: | ||
- for: [service_types, integration_types, integration_endpoint_types] | ||
cmd: "curl -so ./pkg/dist/{{.ITEM}}.yml https://raw.githubusercontent.com/aiven/go-api-schemas/refs/heads/main/pkg/dist/{{.ITEM}}.yml" |
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
Oops, something went wrong.