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

Deploy SDK examples to docs #44

Merged
merged 2 commits into from
Dec 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,18 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Add TypeScript SDK Samples to OpenAPI
run: |
npx bump-cli overlay openapi.yaml \\
https://spec.speakeasy.com/protectearth/protectearth/train-travel-api-typescript-code-samples \\
> openapi.codegen.yaml
- name: Deploy API documentation
uses: bump-sh/github-action@v1
with:
doc: train-travel-api
token: ${{secrets.BUMP_TOKEN}}
file: openapi.yaml
file: openapi.codegen.yaml

api-diff:
if: ${{ github.event_name == 'pull_request' }}
Expand Down
11 changes: 11 additions & 0 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,17 @@ servers:
description: Production
x-internal: false

x-speakeasy-retries:
strategy: backoff
backoff:
initialInterval: 500 # 500 milliseconds
maxInterval: 60000 # 60 seconds
maxElapsedTime: 3600000 # 5 minutes
exponent: 1.5
statusCodes:
- 5XX
retryConnectionErrors: true

security:
- OAuth2:
- read
Expand Down
Loading