2x same param name in components.parameters
triggers diff for identical base
and revision
#352
Labels
bug
Something isn't working
Describe the bug
2 parameter definitions in the
components.parameters
section with the same parametername
, but with differingschema
anddescription
trigger diff output for both,oasdiff summary
andoasdiff diff
, especially whenbase
andrevision
are identical.To Reproduce
Note that the attached oasdiff_bug_different_component_same_parameter.zip contains the example minimal OAS file for the following steps.
Steps to reproduce the behavior:
oasdiff
version 1.7.1 (I've seen it with 1.7.0 as well, but didn't try any other versions.)oasdiff_bug_different_component_same_parameter.yaml
with the following content:oasdiff summary oasdiff_bug_different_component_same_parameter.yaml oasdiff_bug_different_component_same_parameter.yaml
(Note thatbase
andrevision
are the very same file!)oasdiff diff oasdiff_bug_different_component_same_parameter.yaml oasdiff_bug_different_component_same_parameter.yaml
(Note thatbase
andrevision
are the very same file!)(Sometimes the diff is shown in reverse, i.e. as added enum option.)
Expected behavior
oasdiff summary
I would expect to seeas output.
oasdiff diff
I would expect an empty output.Desktop:
Additional context
name
.name
has a different meaning (and hence a different declaration) in different contexts.oasdiff
's role to enforce any rules about parameter naming, that would be a linter's job.The text was updated successfully, but these errors were encountered: