Skip to content

Commit c963666

Browse files
committed
Fix invalid path
1 parent af8f6c2 commit c963666

1 file changed

Lines changed: 2 additions & 15 deletions

File tree

modules/openapi-generator/src/test/java/org/openapitools/codegen/OpenAPINormalizerTest.java

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1508,26 +1508,13 @@ public Schema normalizeSchema(Schema schema, Set<Schema> visitedSchemas) {
15081508
@Test
15091509
public void testREPLACE_ONE_OF_BY_DISCRIMINATOR_MAPPING() {
15101510
// to test array schema processing in 3.1 spec
1511-
OpenAPI openAPI = TestUtils.parseSpec("src/test/resources/3_0/spring/oneOf_issue_23527.yaml");
1511+
OpenAPI openAPI = TestUtils.parseSpec("src/test/resources/3_0/oneOf_issue_23527.yaml");
15121512

15131513
Map<String, String> inputRules = Map.of("REPLACE_ONE_OF_BY_DISCRIMINATOR_MAPPING", "true");
15141514
OpenAPINormalizer openAPINormalizer = new OpenAPINormalizer(openAPI, inputRules);
15151515
openAPINormalizer.normalize();
1516-
dump(openAPI);
1517-
}
1518-
1519-
private void dump(OpenAPI openAPI) {
1520-
1521-
ObjectMapper mapper = Yaml.mapper();
1522-
String yaml = null;
1523-
try {
1524-
yaml = mapper.writeValueAsString(openAPI);
1525-
} catch (JsonProcessingException e) {
1526-
throw new RuntimeException(e);
1527-
}
1528-
1529-
System.out.println(yaml);
15301516

15311517
}
15321518

1519+
15331520
}

0 commit comments

Comments
 (0)