fix(cli): send dynamicIRLanguages on registerApiDefinition instead of the IR bodies - #17461
Draft
devin-ai-integration[bot] wants to merge 6 commits into
Draft
fix(cli): send dynamicIRLanguages on registerApiDefinition instead of the IR bodies#17461devin-ai-integration[bot] wants to merge 6 commits into
devin-ai-integration[bot] wants to merge 6 commits into
Conversation
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
Author
🤖 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:
|
Ryan-Amirthan
approved these changes
Aug 18, 2026
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
devin-ai-integration
Bot
changed the base branch from
devin/1786738697-fix-register-api-definition-payload
to
main
August 18, 2026 19:08
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes
PAYLOAD_TOO_LARGE(413) failures when publishing docs for large APIs with dynamic SDK snippets (sigma'scode-representation).publishDocswas sending the entire dynamic IR inline in theregisterApiDefinitionbody once per SDK language (~6 MB × 5 languages ≈ 30 MB for sigma), even though the registry only ever reads the language names in order to mint one presigned S3 upload URL per language. The IRs are uploaded to S3 separately, and docs rendering reads them from S3 — never from the register request.The request now carries just
dynamicIRLanguages: string[], the honest shape added to FDR in fern-platform#14007 (merging first, so no legacydynamicIRsfallback is needed here). Sigma's register body drops from ~30 MB to ~2 MB (the API definition itself); snippets are unchanged.Supersedes #17426 (closed — that was the intermediate step that sent an empty
dynamicIRsmap).Changes Made
publishDocs: senddynamicIRLanguages: Object.keys(dynamicIRsByLanguage)instead of the dynamic IR map; the full IRs stay in memory and still flow into the existing S3 upload path.Testing
npx turbo test --filter=@fern-api/remote-workspace-runner(246 passing)Related: fern-api/fern-platform#14007 (FDR accepts
dynamicIRLanguages+ dev test). Merge that first.Link to Devin session: https://app.devin.ai/sessions/8f61e79cb12c453b8b22dd6809985f1c