Skip to content
This repository has been archived by the owner on Dec 10, 2018. It is now read-only.

validate field types when write data to transport #149

Merged
merged 1 commit into from
Aug 5, 2015

Conversation

maralla
Copy link
Contributor

@maralla maralla commented Aug 5, 2015

When type mismatched this kind of exception will be rasied:

TDecodeException: Field 'amount(1)' of 'TGift' needs type 'MAP<STRING, TFood>', but the value is `'hello'`

@lxyu

@lxyu
Copy link
Contributor

lxyu commented Aug 5, 2015

👍

lxyu added a commit that referenced this pull request Aug 5, 2015
validate field types when write data to transport
@lxyu lxyu merged commit 32f9696 into Thriftpy:develop Aug 5, 2015
@kols
Copy link

kols commented Aug 5, 2015

这个 feature 好!

@hit9
Copy link
Contributor

hit9 commented Aug 5, 2015

👍

@wooparadog
Copy link
Member

其实 python ducktyping 最好是在 throw 的时候处理 error msg 的.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants