summaryrefslogtreecommitdiff
path: root/docs/errors.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/errors.rst')
-rw-r--r--docs/errors.rst8
1 files changed, 8 insertions, 0 deletions
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".