Skip to content

Commit

Permalink
use opensourced swagger core and parser dependencies (OpenAPITools#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Compton authored May 7, 2021
1 parent 8c4a633 commit 0bd488c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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" +
Expand Down Expand Up @@ -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);
}
Expand Down
10 changes: 8 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1331,6 +1331,12 @@
<artifactId>testng</artifactId>
<version>${testng-version}</version>
<scope>test</scope>
<exclusions>
<exclusion>
<artifactId>snakeyaml</artifactId>
<groupId>org.yaml</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.jmockit</groupId>
Expand All @@ -1356,8 +1362,8 @@
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<swagger-parser-version>2.0.8-ibm4</swagger-parser-version>
<swagger-core-version>2.0.7-ibm3</swagger-core-version>
<swagger-parser-version>2.0.25</swagger-parser-version>
<swagger-core-version>2.1.9</swagger-core-version>
<scala-version>2.11.1</scala-version>
<felix-version>3.3.1</felix-version>
<commons-io-version>2.4</commons-io-version>
Expand Down

0 comments on commit 0bd488c

Please # to comment.