Skip to content

Commit

Permalink
refactor(kafka): add VehicleGasolinePayloadDto to schema subtypes in …
Browse files Browse the repository at this point in the history
…VehicleBase (#859)

Co-authored-by: Timon Back <timonback@users.noreply.github.com>
  • Loading branch information
sam0r040 and timonback authored Jul 26, 2024
1 parent 7cae72f commit 59b8fe6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 59b8fe6

Please sign in to comment.