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
The tool implementation does treat rules independently, the fact that you disable RES-E003 (Added Enum value in Response contract) does not disable MIS-E002 (Changed type).
The changes that you are making on the specs are altering
the object per se (regardless on where it is used)
the response contract of an endpoint
and due to this the 2 rules are actually triggered.
@macisamuele thanks, yeah I figured that's the reason why it's happening, but then what's the point of having a separate rule for the enum if you can't disable it?
We want to be able to add values for an enum, but fail on field type changes.
Describe the bug
We added values to an enum in a response. We disabled rule
RES-E003
to allow that, however it still triggersMIS-E002
.To Reproduce
Please provide information about:
swagger_spec_compatibility run old.yaml new.yaml -b RES-E003
the output:
Note: Please provide a minimal case of spec as it helps more in identifying the issue and fixing it.
Expected behavior
I expected the compability check to pass as rule RES-E003 is disabled.
Platform:
Python 3.8.7 (default, Jan 12 2021, 17:16:32) [GCC 8.3.0]
The text was updated successfully, but these errors were encountered: