Added more object type maps. Spelling fix in comment.

This commit is contained in:
Scott Idem
2024-08-09 14:39:20 -04:00
parent d6b9b0b950
commit 30f3aaea27
9 changed files with 145 additions and 1 deletions

View File

@@ -202,7 +202,7 @@ class Event_File_Base(BaseModel):
return redis_lookup_id_random(record_id_random=id_random, table_name='event_track')
return None
# NOTE: I kind of give up on this. Handeling this outside of Pydantic and before the data is even attempted to be loaded into the Event_File_Base model. -STI 2021-09-10
# NOTE: I kind of give up on this. Handling this outside of Pydantic and before the data is even attempted to be loaded into the Event_File_Base model. -STI 2021-09-10
# NOTE: This validator will try to find and "set" the for_id_random value. However, The value is not really "set" in Pydantic. To get this value, exclude_unset=True when returning a dict from the model.
# @validator('for_id_random', always=True)
# def for_id_random_lookup(cls, v, values, **kwargs):