You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Coach model is currently throwing a validation error when parsing the hireDate field from the CFBD API. This is causing the data extraction process to fail.
Current Behavior
The hireDate field is defined as a required date type in the Coach model.
Some records from the API have null or improperly formatted hireDate values.
This leads to a ValidationError when trying to create Coach objects.
Expected Behavior
The Coach model should be able to handle null or string hireDate values.
The data extraction process should complete successfully for all records.
Proposed Solution
Change the hire_date field in the Coach model to be an optional string:
Description
The Coach model is currently throwing a validation error when parsing the hireDate field from the CFBD API. This is causing the data extraction process to fail.
Current Behavior
The hireDate field is defined as a required date type in the Coach model.
Some records from the API have null or improperly formatted hireDate values.
This leads to a ValidationError when trying to create Coach objects.
Expected Behavior
The Coach model should be able to handle null or string hireDate values.
The data extraction process should complete successfully for all records.
Proposed Solution
Change the hire_date field in the Coach model to be an optional string:
hire_date: Optional[str] = Field(default=None, alias="hireDate")
The text was updated successfully, but these errors were encountered: