[
https://issues.apache.org/jira/browse/THRIFT-257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12688732#action_12688732
]
Alexander Shigin commented on THRIFT-257:
-----------------------------------------
{code}
+ indent(out) << "if self." << field->get_name() << " is None:" << endl;
+ indent(out) << " raise TProtocol.TProtocolException(message='Required
field " <<
{code}
Can it be better to make one more indent_up()? Or remove newline after the "if"?
> Support validation of required fields
> -------------------------------------
>
> Key: THRIFT-257
> URL: https://issues.apache.org/jira/browse/THRIFT-257
> Project: Thrift
> Issue Type: New Feature
> Components: Compiler (Python)
> Reporter: Esteve Fernandez
> Attachments: thrift-257.patch
>
>
> It would be nice to generate a method to validate that required fields are
> present, just like the one the Ruby compiler generates.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.