-
Notifications
You must be signed in to change notification settings - Fork 145
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
Address issue #1445 and fix failed test #1480
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1480 +/- ##
============================================
+ Coverage 77.11% 77.25% +0.13%
- Complexity 669 672 +3
============================================
Files 171 171
Lines 2819 2822 +3
Branches 442 442
============================================
+ Hits 2174 2180 +6
+ Misses 417 414 -3
Partials 228 228 ☔ View full report in Codecov by Sentry. |
👍 |
Oh, by the way, there is a drop in coverage. Can you think of a new test case covering it? |
I've added a new test case before but it's not recognising the new test case as one covering string input scenario |
👍 |
👍 |
Addresses #1445
As Zally does not support validation for relative refs, no new test cases to cover this scenario
After upgrading to io.swagger.parser.v3:swagger-parser:2.1.9 (from 2.0.32) the test case was failing due to different error message.
This error occured because of changes in OpenAPIDeserializer:
rootMap = new ObjectMapper().convertValue(rootNode, Map.class);
the convert to rootMap was introduced before trying to parse the rootNode. That's why it is not setting the correct message in the result.
Before the upgrade the message was
attribute openApi is not of type "object"
After upgrade the
IllegalArgumentException
is handled by the library itself, setting the message toAligned with @tkrop on the fix:
handle this exception as violation of rule #101
Since there is 0 attributes in test example
"no swagger definition"
it is handled as ParseResult.NotApplicable with following details: