jsonschema_diff.core.custom_compare.range

Attributes

Classes

Bounds

CompareRange

Ranges for JSON Schema:

Module Contents

Number[source]
Dimension[source]
class Bounds[source]
lower: Number | None[source]
lower_inclusive: bool[source]
upper: Number | None[source]
upper_inclusive: bool[source]
is_empty() bool[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 = '∞'[source]
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]