Skip to content

Commit 4f171aa

Browse files
committed
And docs for the arguments.
1 parent 4f9447b commit 4f171aa

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

docs/errors.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,3 +377,11 @@ to guess the most relevant error in a given bunch.
377377
... for e in sorted(errors, key=exceptions.by_relevance())
378378
... ]
379379
['home', 'name']
380+
381+
:argument set weak: a collection of validators to consider to be "weak". If
382+
there are two errors at the same level of the instance and one is in
383+
the set of weak validators, the other error will take priority. By
384+
default, :validator:`anyOf` and :validator:`oneOf` are considered weak
385+
validators and will be superceded by other same-level validation
386+
errors.
387+
:argument set strong a collection of validators to consider to be "strong".

0 commit comments

Comments
 (0)