From c06fd0c7841b9258b19e9e719fc705bb8bbded04 Mon Sep 17 00:00:00 2001 From: gracekarina Date: Fri, 1 Apr 2022 16:53:35 -0500 Subject: [PATCH] test for issue #1685 messages from convertion v2 to v3 --- .../src/test/java/io/swagger/parser/OpenAPIParserTest.java | 4 ++++ pom.xml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/swagger-parser/src/test/java/io/swagger/parser/OpenAPIParserTest.java b/modules/swagger-parser/src/test/java/io/swagger/parser/OpenAPIParserTest.java index cd75855586..2af810e527 100644 --- a/modules/swagger-parser/src/test/java/io/swagger/parser/OpenAPIParserTest.java +++ b/modules/swagger-parser/src/test/java/io/swagger/parser/OpenAPIParserTest.java @@ -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 diff --git a/pom.xml b/pom.xml index 9fd67ffbda..3b0c617eab 100644 --- a/pom.xml +++ b/pom.xml @@ -394,7 +394,7 @@ 1.30 - 1.0.57 + 1.0.58 2.11.0 1.7.30 2.2.0-SNAPSHOT