jsonschema_diff.core.custom_compare

Submodules

Classes

CompareList

CompareRange

Ranges for JSON Schema:

Package Contents

class CompareList(*args: Any, **kwargs: Any)[source]
elements: list[CompareListElement] = []
changed_elements: list[CompareListElement] = []
compare() jsonschema_diff.core.abstraction.Statuses[source]
is_for_rendering() bool[source]
render(tab_level: int = 0, with_path: bool = True) str[source]
static legend() jsonschema_diff.core.parameter_base.LEGEND_RETURN_TYPE[source]
class CompareRange(*args: Any, **kwargs: Any)[source]
Ranges for JSON Schema:
  • value: minimum/maximum (+ exclusiveMinimum/Maximum: bool|number)

  • length: minLength/maxLength

  • items: minItems/maxItems

  • properties: minProperties/maxProperties

Notes

  • bool is not considered a number (excluded from isinstance(int))

  • use only dict_compare (ToCompare by keys)

INFINITY = '∞'
compare() jsonschema_diff.core.abstraction.Statuses[source]
get_name() str[source]
render(tab_level: int = 0, with_path: bool = True) str[source]
static legend() jsonschema_diff.core.parameter_base.LEGEND_RETURN_TYPE[source]