docs: preserve cached examples across unrelated API changes - #1228
Open
dev-seth-vapi wants to merge 1 commit into
Open
dev-seth-vapi wants to merge 1 commit into
dev-seth-vapi wants to merge 1 commit into
Conversation
dev-seth-vapi
marked this pull request as ready for review
September 16, 2026 21:12
Lightsage docs evalsResult: passed Average score: 100/100
|
Contributor
|
🌿 Preview your docs: https://vapi-preview-01a0ac1f-6e2a-7600-931b-a78da9407c4c.docs.buildwithfern.com |
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.
What changed
An API edit previously invalidated every cached Fern example because both the GitHub Actions restore key and each entry included the full API inputs. Cache entries now depend on their own inputs and the complete transitive closure of referenced schemas and examples. Unrelated endpoint and type edits can reuse existing examples.
GitHub Actions retains the tooling-specific cache across API changes. Changes to Fern, the adapter, runtime, or parser settings still invalidate the relevant cache. Non-local references bypass caching. Missing targets, recursive references, diagnostics, corrupt entries, and independently returned objects retain safe handling.
This changes only the docs repository. Validation, examples, SDK snippets, and the API playground remain enabled.
Validation
CreateByoPhoneNumberDTOcompleted in 18.89 seconds with 2,263 hits and only 3 misses (99.87% reuse). Inspected the persisted generated result and confirmed it contains the new allowed value.These are local full-site check measurements, not production publishing timings. This format change requires one fresh cache fill. Shared-type edits can legitimately invalidate many entries.
The adapter still requires the exact checksum of Fern 5.112.0. The dependency traversal was checked against its two wrapped example generators and reference resolver.