From 0bd488c74f0135165e2c163fd45462ddf599e9f8 Mon Sep 17 00:00:00 2001 From: Christian Compton Date: Fri, 7 May 2021 08:39:09 -0500 Subject: [PATCH] use opensourced swagger core and parser dependencies (#7) --- .../org/openapitools/codegen/DefaultCodegenTest.java | 2 +- .../codegen/serializer/SerializerUtilsTest.java | 4 ++-- pom.xml | 10 ++++++++-- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/DefaultCodegenTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/DefaultCodegenTest.java index 2dfe69565e28..4cdb32037fdb 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/DefaultCodegenTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/DefaultCodegenTest.java @@ -402,7 +402,7 @@ public void testExample3() { CodegenParameter codegenParameter2 = CodegenModelFactory.newInstance(CodegenModelType.PARAMETER); codegen.setParameterExampleValue(codegenParameter2, operation2.getParameters().get(0)); - Assert.assertEquals(codegenParameter2.example, "example3: parameter value"); + Assert.assertEquals(codegenParameter2.example, "An example3 value"); } @Test diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/serializer/SerializerUtilsTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/serializer/SerializerUtilsTest.java index 7b3f33d39e27..fc6aeffafa33 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/serializer/SerializerUtilsTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/serializer/SerializerUtilsTest.java @@ -77,7 +77,7 @@ public void testToYamlStringCompleteExample() throws Exception { " description: Some description\n" + " operationId: pingOp\n" + " responses:\n" + - " 200:\n" + + " \"200\":\n" + " description: Ok\n" + "components:\n" + " schemas:\n" + @@ -116,7 +116,7 @@ public void testToYamlStringMinimalExample() throws Exception { " description: Some description\n" + " operationId: pingOp\n" + " responses:\n" + - " 200:\n" + + " \"200\":\n" + " description: Ok\n"; assertEquals(content, expected); } diff --git a/pom.xml b/pom.xml index b0ecf155f32d..44f7d91fd74b 100644 --- a/pom.xml +++ b/pom.xml @@ -1331,6 +1331,12 @@ testng ${testng-version} test + + + snakeyaml + org.yaml + + org.jmockit @@ -1356,8 +1362,8 @@ 1.8 1.8 - 2.0.8-ibm4 - 2.0.7-ibm3 + 2.0.25 + 2.1.9 2.11.1 3.3.1 2.4