@@ -40,7 +40,7 @@ class Event(str, Enum):
4040class EventPersistStateData (BaseModel ):
4141 """Data for the persist state event."""
4242
43- model_config = ConfigDict (populate_by_name = True )
43+ model_config = ConfigDict (validate_by_name = True , validate_by_alias = True )
4444
4545 is_migrating : Annotated [bool , Field (alias = 'isMigrating' )]
4646
@@ -49,7 +49,7 @@ class EventPersistStateData(BaseModel):
4949class EventSystemInfoData (BaseModel ):
5050 """Data for the system info event."""
5151
52- model_config = ConfigDict (populate_by_name = True )
52+ model_config = ConfigDict (validate_by_name = True , validate_by_alias = True )
5353
5454 cpu_info : Annotated [CpuInfo , Field (alias = 'cpuInfo' )]
5555 memory_info : Annotated [
@@ -62,7 +62,7 @@ class EventSystemInfoData(BaseModel):
6262class EventMigratingData (BaseModel ):
6363 """Data for the migrating event."""
6464
65- model_config = ConfigDict (populate_by_name = True )
65+ model_config = ConfigDict (validate_by_name = True , validate_by_alias = True )
6666
6767 # The remaining time in seconds before the migration is forced and the process is killed
6868 # Optional because it's not present when the event handler is called manually
@@ -73,21 +73,21 @@ class EventMigratingData(BaseModel):
7373class EventAbortingData (BaseModel ):
7474 """Data for the aborting event."""
7575
76- model_config = ConfigDict (populate_by_name = True )
76+ model_config = ConfigDict (validate_by_name = True , validate_by_alias = True )
7777
7878
7979@docs_group ('Event data' )
8080class EventExitData (BaseModel ):
8181 """Data for the exit event."""
8282
83- model_config = ConfigDict (populate_by_name = True )
83+ model_config = ConfigDict (validate_by_name = True , validate_by_alias = True )
8484
8585
8686@docs_group ('Event data' )
8787class EventCrawlerStatusData (BaseModel ):
8888 """Data for the crawler status event."""
8989
90- model_config = ConfigDict (populate_by_name = True )
90+ model_config = ConfigDict (validate_by_name = True , validate_by_alias = True )
9191
9292 message : str
9393 """A message describing the current status of the crawler."""
0 commit comments