From 59b8fe6f136400d8f4a33af17ce664062c695fd4 Mon Sep 17 00:00:00 2001 From: sam0r040 <93372330+sam0r040@users.noreply.github.com> Date: Fri, 26 Jul 2024 13:24:52 +0200 Subject: [PATCH] refactor(kafka): add VehicleGasolinePayloadDto to schema subtypes in VehicleBase (#859) Co-authored-by: Timon Back --- .../examples/kafka/dtos/discriminator/VehicleBase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/springwolf-examples/springwolf-kafka-example/src/main/java/io/github/springwolf/examples/kafka/dtos/discriminator/VehicleBase.java b/springwolf-examples/springwolf-kafka-example/src/main/java/io/github/springwolf/examples/kafka/dtos/discriminator/VehicleBase.java index bc95bc108..faf449ee5 100644 --- a/springwolf-examples/springwolf-kafka-example/src/main/java/io/github/springwolf/examples/kafka/dtos/discriminator/VehicleBase.java +++ b/springwolf-examples/springwolf-kafka-example/src/main/java/io/github/springwolf/examples/kafka/dtos/discriminator/VehicleBase.java @@ -15,7 +15,7 @@ @JsonSubTypes.Type(value = VehicleGasolinePayloadDto.class, name = "VehicleGasolinePayloadDto"), }) @Schema( - subTypes = {VehicleElectricPayloadDto.class}, + subTypes = {VehicleElectricPayloadDto.class, VehicleGasolinePayloadDto.class}, discriminatorProperty = "vehicleType", discriminatorMapping = { @DiscriminatorMapping(value = "VehicleElectricPayloadDto", schema = VehicleElectricPayloadDto.class),