From 38506e574c4291da095086b708420b7bf882e929 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sun, 14 Mar 2010 00:14:09 +0000 Subject: [PATCH] Describe. --- cereal/interfaces.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cereal/interfaces.py b/cereal/interfaces.py index d38ef90..f41014a 100644 --- a/cereal/interfaces.py +++ b/cereal/interfaces.py @@ -1,7 +1,9 @@ def Validator(struct, value): """ + A validator is called after deserialization of a value. + If ``value`` is not valid, raise a :class:`cereal.Invalid` - instance as an exception. + instance as an exception after. ``struct`` is a :class:`cereal.Structure` instance which contains, among other things, the default value, the name of the