-
Notifications
You must be signed in to change notification settings - Fork 3
Add x-fern-retries OpenAPI extension documentation #1824
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
Add x-fern-retries OpenAPI extension documentation #1824
Conversation
- Add x-fern-retries to extensions overview table - Create dedicated retries.mdx page with examples - Add retry behavior page to navigation - Document Python SDK-only support for retry configuration Co-Authored-By: adi@buildwithfern.com <aditya.arolkar@berkeley.edu>
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
| --- | ||
|
|
||
| <Callout intent="info"> | ||
| The `x-fern-retries` extension is currently supported in Python SDKs only. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[FernStyles.Current] Avoid time-relative terms like 'currently' that become outdated
| type: string | ||
| ``` | ||
|
|
||
| When retries are disabled at the endpoint level, the generated SDK will not retry failed requests to that endpoint, regardless of the end user's SDK configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [vale] reported by reviewdog 🐶
[Microsoft.Contractions] Use 'won't' instead of 'will not'.
|
|
||
| ## Example: Disable retries for a POST endpoint | ||
|
|
||
| In this example, we disable retries for a plant creation endpoint to prevent duplicate entries: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📝 [vale] reported by reviewdog 🐶
[FernStyles.We] Try to avoid using first-person plural like 'we'.
- Remove 'currently' (time-relative term) - Use 'won't' instead of 'will not' (contractions) - Remove 'we' (first-person plural) Co-Authored-By: adi@buildwithfern.com <aditya.arolkar@berkeley.edu>
Add x-fern-retries OpenAPI extension documentation
Summary
This PR documents the new
x-fern-retriesOpenAPI extension that allows configuring retry behavior at the endpoint level for Python SDKs. The documentation includes:x-fern-retriesto the extensions overview table with a note that it's Python SDK only/learn/api-definitions/openapi/extensions/retrieswith:disabled: trueReview & Testing Checklist for Human
disabled: trueconfiguration and behavior description match the actual implementation. Check if there are other configuration options (retry count, backoff strategy, etc.) that should be documented.Notes
Link to Devin run: https://app.devin.ai/sessions/5ae3523f039b4955a258c627a4fbcb61
Requested by: adi@buildwithfern.com (@aditya-arolkar-swe)