-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
References under paths are compared only by ref name - oasdiff should compare the ref values. #276
Comments
I'm happy to work on this issue. |
@reuvenharrison I had some attempts to fix this by creating new diff category:
Do you think this is the good way to approach this problem? I noticed we also have |
Going to use |
Hi @reuvenharrison @wtrocki . Thanks again for the great work on oasdiff. We use it daily. This impacts us as well, especially for analyzing Post Body parameters. From what I've seen, request bodies are usually referenced via component schemas rather than via Request body objects under a path. We have some automation that @reuvenharrison is aware of that compares about 200 swagger docs versus others. I generated a parameter specific report and there were only about 5 instances where post body parameters were defined in RequestBody objects rather than via locally referenced schemas. Do you have an idea of when this might be supported or on the roadmap? If it's not on the roadmap, perhaps we could get some pointers on where to contribute for this. Not sure of how widespread the changes would need to be. |
Hi @kmcquade |
Hi @kmcquade
|
Hi again @kmcquade
|
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: