Closed ganeshnikam18 closed 8 months ago
For (1) yes, it seems that documentation is not aligned with the implementation. Please also update the corresponding tests as they are failing.
For (2) I am a bit skeptical. Did you use the latest version of CATS to run that test? It shouldn't raise a warn
as application/json
and application/problem+json
content types are equivalent. I agree that we should raise errors first. And it will probably be a better idea to increase the warn
in this case to error
.
So, in conclusion, please also updates the corresponding tests for (1).
And for (2) try running with latest CATS.
For (1) I have updated the test cases and added the commit
For (2) I have verified with latest version as you suggested. It does not report the warn for content-type mis-match. You can improve the current sequence of check to report error 1st and then warning and then success case. I had added that commit as per my understanding. You can reject the commit
Merged now, but preserving the existing logic to report results.
I have added this fix using the reference of IntegerFieldRightBoundary Fuzzer