Skip to content

Commit

Permalink
Add missing test for Sedan
Browse files Browse the repository at this point in the history
  • Loading branch information
david-marconis committed Sep 20, 2024
1 parent e478171 commit 452e95b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@ public void testEnumDiscriminatorDefaultValueIsNotString() throws IOException {
"MiniVan", "CarType carType = CarType.MiniVan",
"CargoVan", "CarType carType = CarType.CargoVan",
"SUV", "CarType carType = CarType.SUV",
"Truck", "CarType carType = CarType.Truck"
"Truck", "CarType carType = CarType.Truck",
"Sedan", "CarType carType = CarType.Sedan"

);
for (Map.Entry<String, String> e : expectedContents.entrySet()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2305,7 +2305,8 @@ public void testAllOfWithSinglePrimitiveTypeRef() {
"MiniVan",
"CargoVan",
"SUV",
"Truck");
"Truck",
"Sedan");
for (String entity : entities) {
File entityFile = files.get(entity + ".java");
assertNotNull(entityFile);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ components:
# Car inheritance tree: Car -> Truck -> SUV
# Car -> Van -> MiniVan
# Car -> Van -> CargoVan
# Car -> Sedan
Car:
type: object
required:
Expand Down Expand Up @@ -101,6 +102,8 @@ components:
type: object
allOf:
- $ref: '#/components/schemas/Car'
required:
- carType
properties:
carType:
$ref: '#/components/schemas/CarType'
Expand Down

0 comments on commit 452e95b

Please sign in to comment.