Skip to content

Commit 4e39d32

Browse files
wassnameclaudypoo
andcommitted
Add the retry overlay file and register it in workflow.yaml
Completes the prior commit: 408/429 join 5XX via x-speakeasy-retries overlay. Verified offline with `speakeasy overlay apply`: statusCodes -> [5XX, 408, 429]. Co-Authored-By: Claudypoo <288921227+claudypoo@users.noreply.github.com>
1 parent 31e1fba commit 4e39d32

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
overlay: 1.0.0
2+
x-speakeasy-jsonpath: rfc9535
3+
info:
4+
title: Retry request-timeout and rate-limit responses
5+
version: 0.0.0
6+
actions:
7+
- target: $["x-speakeasy-retries"].statusCodes
8+
description: Also retry 408 (request timeout) and 429 (rate limit), not just 5XX
9+
update:
10+
- "408"
11+
- "429"

.speakeasy/workflow.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ sources:
1111
- location: .speakeasy/overlays/allof-simplify.overlay.yaml
1212
- location: .speakeasy/overlays/boolean-query-params.overlay.yaml
1313
- location: .speakeasy/overlays/fix-nullable-pagination.overlay.yaml
14+
- location: .speakeasy/overlays/retry-transient-status-codes.overlay.yaml
1415
output: .speakeasy/out.openapi.yaml
1516
registry:
1617
location: registry.speakeasyapi.dev/openrouter/sdk/open-router-chat-completions-api

0 commit comments

Comments
 (0)