Skip to content

Conversation

@devin-ai-integration
Copy link
Contributor

Add x-fern-retries OpenAPI extension documentation

Summary

This PR documents the new x-fern-retries OpenAPI extension that allows configuring retry behavior at the endpoint level for Python SDKs. The documentation includes:

  • Added x-fern-retries to the extensions overview table with a note that it's Python SDK only
  • Created a dedicated page at /learn/api-definitions/openapi/extensions/retries with:
    • Introduction explaining the extension's purpose
    • Example showing how to disable retries using disabled: true
    • Use cases section explaining when to use this extension
    • Additional example demonstrating retry disabling for a POST endpoint
  • Added the new page to the navigation in alphabetical order

Review & Testing Checklist for Human

  • Verify content accuracy against implementation - I documented based on limited information from the PR summary. Please confirm that the disabled: true configuration and behavior description match the actual implementation. Check if there are other configuration options (retry count, backoff strategy, etc.) that should be documented.
  • Test the documentation site - Build and preview the docs locally to verify the new page renders correctly, appears in the navigation, and all links work properly (especially the link from the overview table).
  • Review the OpenAPI examples - Verify the YAML syntax is correct and the examples demonstrate realistic use cases for the extension.

Notes

  • Vale linting wasn't available locally but will run in CI
  • Examples use plant-themed content per documentation guidelines
  • Followed the pattern of existing extension pages (especially the audiences page)

Link to Devin run: https://app.devin.ai/sessions/5ae3523f039b4955a258c627a4fbcb61
Requested by: adi@buildwithfern.com (@aditya-arolkar-swe)

- 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-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

---

<Callout intent="info">
The `x-fern-retries` extension is currently supported in Python SDKs only.
Copy link
Contributor

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.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.
Copy link
Contributor

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:
Copy link
Contributor

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'.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 6, 2025

- 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>
@github-actions
Copy link
Contributor

github-actions bot commented Nov 6, 2025

@github-actions
Copy link
Contributor

github-actions bot commented Nov 6, 2025

@github-actions
Copy link
Contributor

github-actions bot commented Nov 6, 2025

@github-actions
Copy link
Contributor

github-actions bot commented Nov 6, 2025

@github-actions
Copy link
Contributor

github-actions bot commented Nov 6, 2025

@aditya-arolkar-swe aditya-arolkar-swe merged commit bcb4f5d into main Nov 6, 2025
2 checks passed
@aditya-arolkar-swe aditya-arolkar-swe deleted the devin/1762458647-add-x-fern-retries-extension-docs branch November 6, 2025 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants