Skip to content

Commit

Permalink
Add KafkaSourceModel to AnyDataSource
Browse files Browse the repository at this point in the history
  • Loading branch information
expediamatt committed Dec 1, 2023
1 parent f15a03c commit 331c870
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,6 @@ def from_data_source(
# https://blog.devgenius.io/deserialize-child-classes-with-pydantic-that-gonna-work-784230e1cf83
# This lets us discriminate child classes of DataSourceModel with type hints.
AnyDataSource = Annotated[
Union[RequestSourceModel, SparkSourceModel],
Union[RequestSourceModel, SparkSourceModel, KafkaSourceModel],
PydanticField(discriminator="model_type"),
]

0 comments on commit 331c870

Please sign in to comment.