From 4f171aa18393682f2a0a3a6a178717eda021dd2c Mon Sep 17 00:00:00 2001 From: Julian Berman Date: Sun, 27 Oct 2013 21:28:09 -0400 Subject: And docs for the arguments. --- docs/errors.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/errors.rst b/docs/errors.rst index 14b21b9..7fbd2f0 100644 --- a/docs/errors.rst +++ b/docs/errors.rst @@ -377,3 +377,11 @@ to guess the most relevant error in a given bunch. ... for e in sorted(errors, key=exceptions.by_relevance()) ... ] ['home', 'name'] + + :argument set weak: a collection of validators to consider to be "weak". If + there are two errors at the same level of the instance and one is in + the set of weak validators, the other error will take priority. By + default, :validator:`anyOf` and :validator:`oneOf` are considered weak + validators and will be superceded by other same-level validation + errors. + :argument set strong a collection of validators to consider to be "strong". -- cgit v1.2.1