Open bitomaxsp opened 1 month ago
This is a deep bug in libopenapi
it's coming from the index and the rolodex. When the parameter is looked up when the parameter is deeply nested as a reference, the utility method scanOperationParams
(https://github.com/pb33f/libopenapi/blob/main/index/utility_methods.go#L391) is not setting a context when looking up references, this means it does not know where it is in the recursion and when it looks in the rolodex (which has everything it needs) it's not finding it, because it's querying the rolodex from the wrong location.
This is a tricky one to fix, but i'll put some cycles into it when I can.
Hi Dave, For the following endpoint with path parameter:
/image-upload/{image-path}
vacuum reports thatAttached are lib and rule set.
I used the following command from vacuum repo root to reproduce it:
./bin/vacuum lint -d -r ruleset-recommended.yaml -p lib ./lib/typelib.yaml
lib.zip ruleset-recommended.yaml.zip