-
Notifications
You must be signed in to change notification settings - Fork 22
Miscellaneous Pydantic response updates #74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 7 commits
94f0b15
5c7b4c6
35e1823
5c1dacc
d0cda04
48d118b
79c17f7
3a899ec
83b9314
b32c794
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -133,15 +133,15 @@ class SessionResultDetailBase(BaseModel): | |
|
|
||
| class SessionResultDetailDriver(SessionResultDetailBase): | ||
| cust_id: int | ||
| flair_shortname: str | ||
| flair_shortname: str | None = None | ||
| helmet: Helmet | ||
| team_id: int | ||
|
|
||
|
|
||
| class SessionResultDetail(SessionResultDetailBase): | ||
| cust_id: int | None = None | ||
| division_name: str | None = None | ||
| driver_results: SessionResultDetailDriver | None = None | ||
| driver_results: list[SessionResultDetailDriver] | None = None | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This could do with a matching file in the mock data and associated test too – I assume these are in team results but I'm not anywhere I can check at the moment.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes its a team result, i will add a test too
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. added the test and mock_return_data |
||
| flair_shortname: str | None = None | ||
| helmet: Helmet | None = None | ||
| team_id: int | None = None | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have you spotted a member profile in the wild activity of
None?If so, add a new file
member_profile_no_activity.jsontomock_return_datawith that profile and add a test for it.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added the test and mock_return_data