◆ best_match()
def best_match |
( |
|
self, |
|
|
|
errors |
|
) |
| |
◆ test_if_the_most_relevant_error_is_allOf_it_is_traversed()
def test_if_the_most_relevant_error_is_allOf_it_is_traversed |
( |
|
self | ) |
|
Now, if the error is allOf, we traverse but select the *most* relevant
error from the context, because all schemas here must match anyways.
◆ test_if_the_most_relevant_error_is_anyOf_it_is_traversed()
def test_if_the_most_relevant_error_is_anyOf_it_is_traversed |
( |
|
self | ) |
|
If the most relevant error is an anyOf, then we traverse its context
and select the otherwise *least* relevant error, since in this case
that means the most specific, deep, error inside the instance.
I.e. since only one of the schemas must match, we look for the most
relevant one.
◆ test_if_the_most_relevant_error_is_oneOf_it_is_traversed()
def test_if_the_most_relevant_error_is_oneOf_it_is_traversed |
( |
|
self | ) |
|
If the most relevant error is an oneOf, then we traverse its context
and select the otherwise *least* relevant error, since in this case
that means the most specific, deep, error inside the instance.
I.e. since only one of the schemas must match, we look for the most
relevant one.
◆ test_nested_context_for_oneOf()
def test_nested_context_for_oneOf |
( |
|
self | ) |
|
◆ test_no_errors()
def test_no_errors |
( |
|
self | ) |
|
◆ test_one_error()
def test_one_error |
( |
|
self | ) |
|
◆ test_oneOf_and_anyOf_are_weak_matches()
def test_oneOf_and_anyOf_are_weak_matches |
( |
|
self | ) |
|
A property you *must* match is probably better than one you have to
match a part of.
◆ test_shallower_errors_are_better_matches()
def test_shallower_errors_are_better_matches |
( |
|
self | ) |
|
The documentation for this class was generated from the following file:
- /home/passerat/Stage/flaskProject/venv/lib/python3.8/site-packages/jsonschema/tests/test_exceptions.py