Kevin Dangoor wrote:
On 10/24/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

Is there a way to validate a schema against a dict but by pass the
"missing value" error ? That is, I want to use a schema created from
the table definition but what I received from the web may not contains
all the fields in that schema.


allow_extra_fields = True on the schema

I don't think that's quite the same; that ignores extra keys, but doesn't ignore missing keys. Bonono essentially wants all the subvalidators of the schema to act as though if_missing=None.

That's probably a reasonable feature for schemas to have.

--
Ian Bicking  /  [EMAIL PROTECTED]  /  http://blog.ianbicking.org

Reply via email to