Skip to content

Commit

Permalink
[openownership/cove-bods#16] Update docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
Bjwebb committed Feb 7, 2019
1 parent a73db38 commit b3b53b9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion libcove/lib/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,13 @@ def oneOf_draft4(validator, oneOf, instance, schema):
"""
oneOf_draft4 validator from
https://github.com/Julian/jsonschema/blob/d16713a4296663f3d62c50b9f9a2893cb380b7af/jsonschema/_validators.py#L337
patched to sort the instance.
Modified to:
- sort the instance JSON, so we get a reproducible output that we
can can test more easily
- If `statementType` is available, use that pick the correct
sub-schema, and to yield those ValidationErrors. (Only
applicable for BODS).
"""
subschemas = enumerate(oneOf)
all_errors = []
Expand Down

0 comments on commit b3b53b9

Please sign in to comment.