Repository navigation
Apply the allow-remote-refs-from "*" default to the loader used after an overlay (2.8.x) - #2624
Merged
mromaszewicz merged 1 commit intoOct 23, 2026
Conversation
On the 2.8 release line an unset allow-remote-refs-from means "*", but that default was applied in loadSwagger only. LoadSwaggerWithOverlay builds a second loader for the overlaid document through newLoader directly, so a library caller with an overlay and no list got "*" for the first load and nothing for the second, and a remote reference in the overlaid document was refused. The CLI was unaffected, since UpdateDefaults fills the list before the loader sees it. Move the default into newLoader, which both loads use, and cover the case in the overlay test. Co-Authored-By: Claude Fable 5.1 <[email protected]>
Contributor
[Medium impact] The PR appears safe to merge. SummaryMoves the nil
Reviews (1) · Last reviewed commit: "Apply the "*" default to the loader used..." · Reviewed by Greptile |
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.
Summary
Follow-up to #2623 on
release/v2.8.x, from review feedback.On this release line an unset
allow-remote-refs-frommeans"*", but #2623 applied that default inloadSwaggeronly.LoadSwaggerWithOverlaybuilds a second loader for the overlaid document throughnewLoaderdirectly, so a library caller passing an overlay and no list got"*"for the first load and an empty policy for the second: any remote reference in the overlaid document was refused.The CLI was not affected, because
Configuration.UpdateDefaultsfills the list before the loader sees it. Library callers ofLoadSwaggerWithOverlayon 2.8.x that combine an overlay, remote references and a nil list were.Change
newLoader, which both loads use, so the first and second load always share the same policy.mainneeds no change: there nil means refuse on both loads already.🤖 Generated with Claude Code