-
Notifications
You must be signed in to change notification settings - Fork 513
refactor!: remove json_ and order_no from Request
#788
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
Conversation
json_ and order_no from Request
json_ and order_no from Requestjson_ and order_no from Request
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.
Good job, it is much better now! And I have a few things...
json_ and order_no from Requestjson_ and order_no from Request
|
|
||
| payload: Annotated[ | ||
| HttpPayload | None, | ||
| BeforeValidator(lambda v: v.encode() if isinstance(v, str) else v), |
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.
Isn't the BeforeValidator still needed when loading an old request file?
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.
Good point. We need both so that payload is correctly serialized and deserialized to a file.
Updated the e2e test.
Co-authored-by: Jan Buchar <[email protected]>
vdusek
left a comment
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.
Amazing job, thanks.
janbuchar
left a comment
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.
Nice one!
Description
json_andorder_nofromRequestwhich is a model of external API. Creating an internal modelInternalRequestto work inside_request_queue_clientIssues
json_andorder_nofromRequest#94Checklist