openapi-changes
openapi-changes copied to clipboard
Bug: References are resolved wrt to current commit
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.