Fix Unversioned Endpoints - #1203
Merged
Merged
Conversation
commonsensesoftware
force-pushed
the
dev/css/fix-unversioned-endpoints
branch
from
July 28, 2026 00:45
92f0a65 to
2d80382
Compare
commonsensesoftware
marked this pull request as ready for review
July 28, 2026 00:56
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.
Fix Unversioned Endpoints
Description
Fixes the routing of unversioned endpoints. The
ApiVersioningMatcherPolicybuilds edges and a jump table based on versioned endpoints. AnEndpointis versioned if it hasApiVersionMetadataapplied. TheIEndpointSelectorPolicy.AppliesToEndpointsbuilds and enforces versioning policies when anyEndpointis versioned in a provided set. Before this change, it was possible that a versionedEndpointcould provide a route template with a fallback that would also include overlapping unversioned endpoints in the same set. As a result, any unversioned endpoints have versioning policies enforced and become unrouteable.This change ensures that unversioned endpoints remain routeable without any versioning policies. If an endpoint really doesn't exist,
404is still the final destination.