Skip to content

Bug : openapi changes considers files in directory where it should not #200

@LasneF

Description

@LasneF

there is a discrepency that touches open-api changes and file management
it does not touch vaccum

the issue is
given this basic command line
openapi-changes html-report .\component-descriptor.yml .\component-descriptor.yml

here i got plenty fully unrelated files error (that are present in the directory )
(the topic is my component descriptor is the bundle ized version of other files

the component descriptor is self contained is without any external ref

then when i move this file into a safe and clean directory openapi diff works , it only yield when i run it in a directory next to other file that looks rolodex is looking for them

got for instance
ERROR cannot resolve reference ../schemas/curves.yaml, it's missing: $.schemas['curves.yaml'] [947:19]
ERROR cannot resolve reference ../../../_shared/common.yaml#/components/responses/401-Unauthorized, it's missing: $.['..']['..']._shared['common.yaml$'].components['responses']['401-Unauthorized'] [949:13]
ERROR cannot resolve reference ../../../_shared/common.yaml#/components/responses/403-Forbidden, it's missing: $.['..']['..']._shared['common.yaml$'].components['responses']['403-Forbidden'] [951:13]
ERROR cannot resolve reference ../../../_shared/common.yaml#/components/responses/Default, it's missing: $.['..']['..']._shared['common.yaml$'].components['responses']['Default'] [953:13]

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