-
Notifications
You must be signed in to change notification settings - Fork 92
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
struct required field is not verified #119
Comments
Yes, I think Thriftpy should validate the arguments are all passed, even it breaks the compatibility. |
@ethe I have some free time these days. Since I worked on |
@iamsudip Thank you, I think we can modify the function |
Similar as #72 , required field in struct should be enforced before send out. Current implementation only validate method args.
Since the init func is generated on the fly, so maybe we should add some validation code in init?
This way actually breaks init then assign behavior. Or add a validate method on each generated class and call it just before send?
The text was updated successfully, but these errors were encountered: