Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge metadata openapi documents #415

Merged
merged 11 commits into from
Nov 1, 2024
20 changes: 17 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
43 changes: 0 additions & 43 deletions .github/workflows/scheme.yml

This file was deleted.

7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,10 @@ docs/pages/solutions/.DS_Store
.cursorrules
.env*
docs/data

docs/pages/api/analytics/analytics.gen.yaml
docs/pages/api/api/api.gen.yaml
docs/pages/api/indexer/indexer.gen.yaml
docs/pages/api/marketplace/marketplace.gen.yaml
docs/pages/api/metadata/metadata.gen.yaml
docs/pages/api/relayer/relayer.gen.yaml
Loading