Skip to content

Commit

Permalink
OpenAPITools#19909 fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thesn10 committed Nov 26, 2024
1 parent c95f4e2 commit 7fadae6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ public void enumArrayModelTest() {
Schema property = (Schema) schema.getProperties().get("array_enum");
CodegenProperty prope = codegen.fromProperty("array_enum", property);
codegen.updateCodegenPropertyEnum(prope);
Assert.assertEquals(prope.datatypeWithEnum, "Array<ArrayEnumEnum>");
Assert.assertEquals(prope.datatypeWithEnum, "Array<\"fish\" | \"crab\">");
Assert.assertEquals(prope.enumName, "ArrayEnumEnum");
Assert.assertTrue(prope.isEnum);
Assert.assertEquals(prope.allowableValues.get("values"), Arrays.asList("fish", "crab"));
Expand All @@ -391,7 +391,7 @@ public void enumArrayModelTest() {
Assert.assertEquals(prope.allowableValues.get("enumVars"), Arrays.asList(fish, crab));

// assert inner items
Assert.assertEquals(prope.datatypeWithEnum, "Array<ArrayEnumEnum>");
Assert.assertEquals(prope.datatypeWithEnum, "Array<\"fish\" | \"crab\">");
Assert.assertEquals(prope.enumName, "ArrayEnumEnum");
Assert.assertTrue(prope.items.isEnum);
Assert.assertEquals(prope.items.allowableValues.get("values"), Arrays.asList("fish", "crab"));
Expand Down

0 comments on commit 7fadae6

Please sign in to comment.