-
Notifications
You must be signed in to change notification settings - Fork 193
fix: path-parameters-defined rule false positive #2442
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: path-parameters-defined rule false positive #2442
Conversation
🦋 Changeset detectedLatest commit: 4a08ebc The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Coverage Report
File Coverage
|
||||||||||||||||||||||||||||||||||||||
|
Have you tested this implementation with the different scenarios? e.g. adding unused parameters in the |
Yes, its running the test from this branch #2438 |
15b8e3e to
2af5c22
Compare
|
9967992 to
b7e901f
Compare
|
📦 A new experimental 🧪 version v0.0.0-snapshot.1765200839 of Redocly CLI has been published for testing. Install with NPM: npm install @redocly/[email protected]
# or
npm install @redocly/[email protected]
# or
npm install @redocly/[email protected] |
e948b2f to
4a08ebc
Compare
What/Why/How?
NOTE: SIMILAR FIX SHOULD BE APPLIED TO OLDER REDOCLY/CLI VERSION.
Added additional
path-parameters-definedrule context during validation to track parameters for Path and Path that comes fromcallback.Having this part of description as an example:
Both
/projects/{projectId}and{$request.body#/callbackUrl}validated by this rule as a separatePathItem.The issue was that without context tracking we were handling
patchoperation as if it a part of{$request.body#/callbackUrl}path.This time instead of having additional context and stack we are going to narrow down visitor access, handling separately
CallbackinsidePathItem.Reference
Closes: #2436
Testing
Screenshots (optional)
Check yourself
Security