jsonschema_diff.core.property

Classes

Module Contents

class Property(
config: jsonschema_diff.core.config.Config,
schema_path: list[str | int],
json_path: list[str | int],
name: str | int | None,
old_schema: dict | None,
new_schema: dict | None,
)[source]
status: jsonschema_diff.core.abstraction.Statuses[source]
parameters: dict[str, Compare][source]
propertys: dict[str | int, Property][source]
config[source]
name[source]
schema_path[source]
json_path[source]
old_schema[source]
new_schema[source]
property json_path_with_name: list[str | int][source]
property schema_path_with_name: list[str | int][source]
compare() None[source]
is_for_rendering() bool[source]
calc_diff() dict[str, int][source]

Summarizes the difference statistics: - all parameters (Compare.calc_diff) - child properties (Property.calc_diff) - plus the status of the current Property (as a single observation)

get_for_rendering() list[Compare][source]
self_render(
tab_level: int = 0,
to_crop: tuple[int, int] = (0, 0),
force_multiline: bool = False,
) tuple[str, list[type[Compare]]][source]
render(
tab_level: int = 0,
_to_crop: tuple[int, int] = (0, 0),
) tuple[list[str], list[type[Compare]]][source]