Skip to content

Commit

Permalink
test for issue #1685 messages from convertion v2 to v3
Browse files Browse the repository at this point in the history
  • Loading branch information
gracekarina committed Apr 1, 2022
1 parent 8516f27 commit c06fd0c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ public void testNPE_1685() {
options.setResolveFully(true);
SwaggerParseResult swaggerParseResult = openAPIParser.readLocation("issue1685.json", null, options);
assertNull(swaggerParseResult.getOpenAPI());
assertNotNull(swaggerParseResult.getMessages());
assertTrue(swaggerParseResult.getMessages().size() == 2);
assertEquals(swaggerParseResult.getMessages().get(0), "attribute notswagger is unexpected");
assertEquals(swaggerParseResult.getMessages().get(1), "attribute swagger is missing");
}

@Test
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@
</repositories>
<properties>
<snakeyaml-version>1.30</snakeyaml-version>
<swagger-parser-v2-version>1.0.57</swagger-parser-v2-version>
<swagger-parser-v2-version>1.0.58</swagger-parser-v2-version>
<commons-io-version>2.11.0</commons-io-version>
<slf4j-version>1.7.30</slf4j-version>
<swagger-core-version>2.2.0-SNAPSHOT</swagger-core-version>
Expand Down

0 comments on commit c06fd0c

Please sign in to comment.