From e4c9ae2ef8e9d4cd568f64f77c5a4be614f7f0f3 Mon Sep 17 00:00:00 2001
From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Date: Wed, 29 Oct 2025 20:59:51 +0000
Subject: [PATCH 1/6] Add C# code snippets to retries documentation
Co-Authored-By: Niels Swimberghe <3382717+Swimburger@users.noreply.github.com>
---
.../sdks/guides/retries-with-backoff.mdx | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/fern/products/sdks/guides/retries-with-backoff.mdx b/fern/products/sdks/guides/retries-with-backoff.mdx
index d832c1cc0..72ee1a1a0 100644
--- a/fern/products/sdks/guides/retries-with-backoff.mdx
+++ b/fern/products/sdks/guides/retries-with-backoff.mdx
@@ -68,6 +68,15 @@ default retry limit when instantiating the client.
)
```
+
+ ```csharp {3}
+ using Imdb;
+
+ var client = new ImdbClient(new ClientOptions {
+ MaxRetries = 1 // overrides the default retry limit to 1
+ });
+ ```
+
It's also possible to override the retry limit on a per-request basis.
@@ -103,5 +112,12 @@ It's also possible to override the retry limit on a per-request basis.
)
```
+
+ ```csharp {2}
+ var movie = await client.Movie.GetAsync("tt0111161", new RequestOptions {
+ MaxRetries = 3 // overrides the default retry limit to 3
+ });
+ ```
+
From 0d82f8e1da23536838eb5d1ead9d9984e0135bff Mon Sep 17 00:00:00 2001
From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Date: Wed, 29 Oct 2025 21:13:27 +0000
Subject: [PATCH 2/6] Add Swift and PHP retry snippets, verified retry support
exists
- Added Swift examples for client-level and request-level retry configuration
- Added PHP examples for client-level and request-level retry configuration
- Verified retry support exists in generated SDKs before adding examples
- Ruby retry support not implemented (parameter exists but not used in RawClient)
Co-Authored-By: Niels Swimberghe <3382717+Swimburger@users.noreply.github.com>
---
.../sdks/guides/retries-with-backoff.mdx | 33 +++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/fern/products/sdks/guides/retries-with-backoff.mdx b/fern/products/sdks/guides/retries-with-backoff.mdx
index 72ee1a1a0..40987c1b6 100644
--- a/fern/products/sdks/guides/retries-with-backoff.mdx
+++ b/fern/products/sdks/guides/retries-with-backoff.mdx
@@ -77,6 +77,25 @@ default retry limit when instantiating the client.
});
```
+
+ ```swift {4}
+ import Imdb
+
+ let client = ImdbClient(
+ baseURL: "https://api.imdb.com",
+ maxRetries: 1 // overrides the default retry limit to 1
+ )
+ ```
+
+
+ ```php {3}
+ use Imdb\ImdbClient;
+
+ $client = new ImdbClient([
+ "maxRetries" => 1 // overrides the default retry limit to 1
+ ]);
+ ```
+
It's also possible to override the retry limit on a per-request basis.
@@ -119,5 +138,19 @@ It's also possible to override the retry limit on a per-request basis.
});
```
+
+ ```swift {2}
+ let movie = try await client.movie.get("tt0111161", requestOptions: RequestOptions(
+ maxRetries: 3 // overrides the default retry limit to 3
+ ))
+ ```
+
+
+ ```php {2}
+ $movie = $client->movie->get("tt0111161", [
+ "maxRetries" => 3 // overrides the default retry limit to 3
+ ]);
+ ```
+
From 2180d0f06ae9a0176d26920f8044a2c1a8e18a64 Mon Sep 17 00:00:00 2001
From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Date: Wed, 29 Oct 2025 21:56:01 +0000
Subject: [PATCH 3/6] Fix line highlighting in C#, Swift, and PHP retry code
snippets
- Changed C# client-level highlight from {3} to {4}
- Changed Swift client-level highlight from {4} to {5}
- Changed PHP client-level highlight from {3} to {4}
- All highlights now correctly point to the maxRetries configuration line
Co-Authored-By: Niels Swimberghe <3382717+Swimburger@users.noreply.github.com>
---
fern/products/sdks/guides/retries-with-backoff.mdx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/fern/products/sdks/guides/retries-with-backoff.mdx b/fern/products/sdks/guides/retries-with-backoff.mdx
index 40987c1b6..7d9842e24 100644
--- a/fern/products/sdks/guides/retries-with-backoff.mdx
+++ b/fern/products/sdks/guides/retries-with-backoff.mdx
@@ -69,7 +69,7 @@ default retry limit when instantiating the client.
```
- ```csharp {3}
+ ```csharp {4}
using Imdb;
var client = new ImdbClient(new ClientOptions {
@@ -78,7 +78,7 @@ default retry limit when instantiating the client.
```
- ```swift {4}
+ ```swift {5}
import Imdb
let client = ImdbClient(
@@ -88,7 +88,7 @@ default retry limit when instantiating the client.
```
- ```php {3}
+ ```php {4}
use Imdb\ImdbClient;
$client = new ImdbClient([
From 4a7188545381c4e13f25a152cf2cfd176ef33850 Mon Sep 17 00:00:00 2001
From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Date: Wed, 29 Oct 2025 23:13:24 +0000
Subject: [PATCH 4/6] Fix line highlighting in C# and PHP client-level retry
examples
Removed blank lines after import statements in C# and PHP client-level
examples to fix line highlighting. The blank lines were causing the
renderer to highlight the wrong line (one line too early).
- C# client-level: Changed from {4} to {3} and removed blank line
- PHP client-level: Changed from {4} to {3} and removed blank line
- Per-request examples were already correct
- Swift examples were already correct
Verified locally with fern docs dev that highlighting now correctly
points to the MaxRetries/maxRetries configuration lines.
Co-Authored-By: Niels Swimberghe <3382717+Swimburger@users.noreply.github.com>
---
fern/products/sdks/guides/retries-with-backoff.mdx | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/fern/products/sdks/guides/retries-with-backoff.mdx b/fern/products/sdks/guides/retries-with-backoff.mdx
index 7d9842e24..33745bc6d 100644
--- a/fern/products/sdks/guides/retries-with-backoff.mdx
+++ b/fern/products/sdks/guides/retries-with-backoff.mdx
@@ -69,9 +69,8 @@ default retry limit when instantiating the client.
```
- ```csharp {4}
+ ```csharp {3}
using Imdb;
-
var client = new ImdbClient(new ClientOptions {
MaxRetries = 1 // overrides the default retry limit to 1
});
@@ -88,9 +87,8 @@ default retry limit when instantiating the client.
```
- ```php {4}
+ ```php {3}
use Imdb\ImdbClient;
-
$client = new ImdbClient([
"maxRetries" => 1 // overrides the default retry limit to 1
]);
From 49101ef23866756cbaf943b45c32ebf27a843ceb Mon Sep 17 00:00:00 2001
From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Date: Thu, 30 Oct 2025 09:46:43 +0000
Subject: [PATCH 5/6] Fix line highlighting for C# and PHP client-level retry
examples
The PR preview renderer adds blank lines after import/use statements,
shifting line numbers. Updated highlighting from {3} to {4} to correctly
highlight the maxRetries/MaxRetries configuration line.
Co-Authored-By: Niels Swimberghe <3382717+Swimburger@users.noreply.github.com>
---
fern/products/sdks/guides/retries-with-backoff.mdx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fern/products/sdks/guides/retries-with-backoff.mdx b/fern/products/sdks/guides/retries-with-backoff.mdx
index 33745bc6d..f675dafc5 100644
--- a/fern/products/sdks/guides/retries-with-backoff.mdx
+++ b/fern/products/sdks/guides/retries-with-backoff.mdx
@@ -69,7 +69,7 @@ default retry limit when instantiating the client.
```
- ```csharp {3}
+ ```csharp {4}
using Imdb;
var client = new ImdbClient(new ClientOptions {
MaxRetries = 1 // overrides the default retry limit to 1
@@ -87,7 +87,7 @@ default retry limit when instantiating the client.
```
- ```php {3}
+ ```php {4}
use Imdb\ImdbClient;
$client = new ImdbClient([
"maxRetries" => 1 // overrides the default retry limit to 1
From 4c8699056e5a99d5f3f4463174f721f6a9fd939a Mon Sep 17 00:00:00 2001
From: Niels Swimberghe <3382717+Swimburger@users.noreply.github.com>
Date: Thu, 30 Oct 2025 12:26:12 -0400
Subject: [PATCH 6/6] fix highlighting
---
fern/products/sdks/guides/retries-with-backoff.mdx | 2 ++
1 file changed, 2 insertions(+)
diff --git a/fern/products/sdks/guides/retries-with-backoff.mdx b/fern/products/sdks/guides/retries-with-backoff.mdx
index f675dafc5..9feeea8fc 100644
--- a/fern/products/sdks/guides/retries-with-backoff.mdx
+++ b/fern/products/sdks/guides/retries-with-backoff.mdx
@@ -71,6 +71,7 @@ default retry limit when instantiating the client.
```csharp {4}
using Imdb;
+
var client = new ImdbClient(new ClientOptions {
MaxRetries = 1 // overrides the default retry limit to 1
});
@@ -89,6 +90,7 @@ default retry limit when instantiating the client.
```php {4}
use Imdb\ImdbClient;
+
$client = new ImdbClient([
"maxRetries" => 1 // overrides the default retry limit to 1
]);