Repository navigation
fix(plugin): prioritize static paths over parametric in Postman binding - #1520
Merged
Merged
Conversation
…ng (#1519) When static path segments (e.g. `/pet/findByTags`) were declared after parametric paths (e.g. `/pet/{petId}`) in the OpenAPI spec, the greedy regex for the parametric path matched the static path first, causing wrong or missing URLs in code samples and the request panel. Sort apiMatchers so static paths are tested before parametric ones, mirroring standard HTTP router behavior. Also fix pre-existing Jest ESM compatibility issues (chalk v5, @apidevtools/json-schema-ref-parser, @redocly/openapi-core) by adding CJS stubs. Co-Authored-By: Claude Opus 4.6 <[email protected]>
|
Size Change: +4.62 kB (+0.2%) Total Size: 2.32 MB 📦 View Changed
ℹ️ View Unchanged
|
The v0.10.0 release uses Node 20 runtime, which GitHub Actions deprecated on 2026-06-02. Pin to unreleased commit 500ac62 that bumps to Node 24 (FirebaseExtended/action-hosting-deploy#450). Also removes the invalid totalPreviewChannelLimit input and the now-redundant FORCE_JAVASCRIPT_ACTIONS_TO_NODE24 env var. Co-Authored-By: Claude Opus 4.6 <[email protected]>
|
Visit the preview URL for this PR (updated for commit c505551): (expires Wed, 01 Jul 2026 16:50:29 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: bf293780ee827f578864d92193b8c2866acd459f |
1 of 2 tasks
This branch was previously deployed
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
Closes #1519
apiMatchersinbindCollectionToApiItems()so static paths are tested before parametric ones, preventing greedy regex from stealing matches when static paths (e.g./pet/findByTags) are declared after parametric siblings (e.g./pet/{petId})@apidevtools/json-schema-ref-parser,@redocly/openapi-core) to fix pre-existing Jest test suite failuresTest plan
findByStatus,getPetById,findByTags) show correct URLs in endpoint bar and code samplesfindByTagspage no longer shows base URL only (the reported bug)getPetByIdpage no longer showsfindByTagspath (the secondary bug)🤖 Generated with Claude Code