I tend to agree with David on this one. It'd sure be nice, but it would add
a TON of extra logic in the compiler to generate it.

Maybe we could do some work to support user-specified validation functions
to be called during the standard validation? (These wouldn't be
automatically cross-platform, but they would at least give you the
opportunity to do the validation seamlessly.)

On Thu, Apr 22, 2010 at 9:37 AM, David Reiss <[email protected]> wrote:

> No.
>
> Jeremy Fergason wrote:
> > Are there any plans to add user defined validation beyond optional and
> required fields to thrift?  It would be nice to be able to specify the
> min/max range of numeric types, min/max length of strings, regular
> expression to validate strings, etc. for structures in thrift.
>

Reply via email to