-
Notifications
You must be signed in to change notification settings - Fork 92
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
oasdiff diff reports changes between two byte-identical files when they are located at different paths.
To Reproduce
Steps to reproduce the behavior:
- download the example file https://raw.githubusercontent.com/oasdiff/oasdiff/main/data/openapi-test1.yaml
- copy it to openapi-test2.yaml
oasdiff diff openapi-test1.yaml openapi-test2.yaml --fail-on-diff- Output
paths:
modified:
/subscribe:
operations:
modified:
POST:
callbacks:
modified:
myEvent:
modified:
hi:
operations:
modified:
POST:
requestBody:
content:
modified:
application/json:
encoding:
modified:
__origin__:
extensions:
modified:
key:
- oldValue: openapi-test1.yaml
value: openapi-test2.yaml
op: replace
from: ""
path: /file
endpoints:
modified:
? method: POST
path: /subscribe
: callbacks:
modified:
myEvent:
modified:
hi:
operations:
modified:
POST:
requestBody:
content:
modified:
application/json:
encoding:
modified:
__origin__:
extensions:
modified:
key:
- oldValue: openapi-test1.yaml
value: openapi-test2.yaml
op: replace
from: ""
path: /file
Expected behavior
Two byte-identical files should always produce an empty diff.
It was the case in version 1.11.11, or when running the diff on the same file :
oasdiff diff openapi-test1.yaml openapi-test1.yaml --fail-on-diff
Desktop (please complete the following information):
- OS: Ubuntu 24.04.4
Additional context
Add any other context about the problem here.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working