From 4e39d32cbb8fc0d8b92d127db7f6464ac8576bd2 Mon Sep 17 00:00:00 2001 From: wassname Date: Sun, 5 Jul 2026 09:16:26 +0800 Subject: [PATCH] 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> --- .../retry-transient-status-codes.overlay.yaml | 11 +++++++++++ .speakeasy/workflow.yaml | 1 + 2 files changed, 12 insertions(+) create mode 100644 .speakeasy/overlays/retry-transient-status-codes.overlay.yaml diff --git a/.speakeasy/overlays/retry-transient-status-codes.overlay.yaml b/.speakeasy/overlays/retry-transient-status-codes.overlay.yaml new file mode 100644 index 0000000..7ea9754 --- /dev/null +++ b/.speakeasy/overlays/retry-transient-status-codes.overlay.yaml @@ -0,0 +1,11 @@ +overlay: 1.0.0 +x-speakeasy-jsonpath: rfc9535 +info: + title: Retry request-timeout and rate-limit responses + version: 0.0.0 +actions: + - target: $["x-speakeasy-retries"].statusCodes + description: Also retry 408 (request timeout) and 429 (rate limit), not just 5XX + update: + - "408" + - "429" diff --git a/.speakeasy/workflow.yaml b/.speakeasy/workflow.yaml index 36493c1..b424293 100644 --- a/.speakeasy/workflow.yaml +++ b/.speakeasy/workflow.yaml @@ -11,6 +11,7 @@ sources: - location: .speakeasy/overlays/allof-simplify.overlay.yaml - location: .speakeasy/overlays/boolean-query-params.overlay.yaml - location: .speakeasy/overlays/fix-nullable-pagination.overlay.yaml + - location: .speakeasy/overlays/retry-transient-status-codes.overlay.yaml output: .speakeasy/out.openapi.yaml registry: location: registry.speakeasyapi.dev/openrouter/sdk/open-router-chat-completions-api