-
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.
merge metadata openapi documents (#415)
* merge metadata openapi documents * merge into metadata.gen.yaml * update metadata with examples * [AUTOMATED] Update: docs/pages/api/**/*.gen.yaml * generate *.gen.yaml before build and dev * remove extra merge examples in github workflows * generate analytics docs while building * delete docs build workflow * fix analytics example structure * updated security additions prior to build * update security-scheme locally --------- Co-authored-by: LukasJenicek <[email protected]> Co-authored-by: James Lawton <[email protected]>
- Loading branch information
1 parent
efd55f0
commit 3576ae4
Showing
16 changed files
with
1,620 additions
and
6,278 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 |
---|---|---|
|
@@ -19,10 +19,24 @@ jobs: | |
run: | | ||
npm install -g [email protected] | ||
pnpm install | ||
- name: Update API Examples | ||
- name: setup-go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: "1.22.5" | ||
|
||
- name: Update openapi docs | ||
run: | | ||
pnpm update-examples | ||
# Read the changed files from the previous step | ||
go mod init github.com/0xsequence/docs | ||
go get github.com/mikefarah/yq/v4@latest | ||
go run github.com/mikefarah/yq/v4 -e -i '.security=[{"ApiKeyAuth":[]}]' docs/pages/api/api/api.gen.yaml | ||
go run github.com/mikefarah/yq/v4 -e -i '.security=[{"BearerAuth":[]}]' docs/pages/api/analytics/analytics.gen.yaml | ||
go run github.com/mikefarah/yq/v4 -e -i '.security=[{"ApiKeyAuth":[]}]' docs/pages/api/marketplace/marketplace.gen.yaml | ||
go run github.com/mikefarah/yq/v4 -e -i '.security=[{"ApiKeyAuth":[]}, {"BearerAuth":[]}]' docs/pages/api/metadata/metadata.gen.yaml | ||
go run github.com/mikefarah/yq/v4 -e -i '.security=[{"ApiKeyAuth":[]}, {"BearerAuth":[]}]' docs/pages/api/indexer/indexer.gen.yaml | ||
go run github.com/mikefarah/yq/v4 -e -i '.security=[{"ApiKeyAuth":[]}]' docs/pages/api/relayer/relayer.gen.yaml | ||
- name: Build | ||
run: pnpm run build | ||
|
This file was deleted.
Oops, something went wrong.
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.