You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When a Path Item Object contains a $ref, oasdiff compares only textual changes to the $ref field.
Ideally, oasdiff should compare the referenced definitions of this path item(s) to each-other.
To Reproduce
Steps to reproduce the behavior:
Run oasdiff -base ref1.yaml -revision ref2.yaml
ref1.yaml
openapi: 3.0.1
info:
title: Test API
version: v1
paths:
/partner-api/test/some-method:
$ref: '#/components/paths/path1'
components:
paths:
path1:
get:
responses:
"200":
description: Success
ref2.yaml
openapi: 3.0.1
info:
title: Test API
version: v1
paths:
/partner-api/test/some-method:
$ref: '#/components/paths/path2'
components:
paths:
path2:
get:
responses:
"200":
description: Success
Result:
paths:
modified:
/partner-api/test/some-method:
ref:
from: '#/components/paths/path1'
to: '#/components/paths/path2'
The text was updated successfully, but these errors were encountered:
reuvenharrison
changed the title
paths $refs are compared only by name
References under paths are compared only by ref name - oasdiff should compare the ref values.
Jun 1, 2023
Describe the bug
When a Path Item Object contains a $ref, oasdiff compares only textual changes to the $ref field.
Ideally, oasdiff should compare the referenced definitions of this path item(s) to each-other.
To Reproduce
Steps to reproduce the behavior:
Run
oasdiff -base ref1.yaml -revision ref2.yaml
ref1.yaml
ref2.yaml
Result:
The text was updated successfully, but these errors were encountered: