Skip to content

Bug: References are resolved wrt to current commit #202

Open
@bodograumann

Description

@bodograumann

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions