openapi-changes icon indicating copy to clipboard operation
openapi-changes copied to clipboard

Bug: References are resolved wrt to current commit

Open bodograumann opened this issue 7 months ago • 0 comments
trafficstars

When using openapi-changes html-report on a local repo with the -p flag, I am getting the error

ERROR unable to locate reference anywhere in the rolodex

Let's say we have spec.yaml, common1.yaml and common2.yaml. In the old commit, spec.yaml was referencing a schema in common1.yaml. Now however the schema was moved from common1.yaml to common2.yaml.

When looking at the old commit, it seems openapi-changes is trying to resolve the reference against the current version of common1.yaml, which does not contain the schema anymore. Instead it should use the version of common1.yaml from the old commit.

bodograumann avatar Apr 15 '25 12:04 bodograumann