MCPcopy
hub / github.com/pydantic/pydantic / _deduplicate_schemas

Function _deduplicate_schemas

pydantic/json_schema.py:2631–2632  ·  view source on GitHub ↗
(schemas: Iterable[JsonDict])

Source from the content-addressed store, hash-verified

2629
2630
2631def _deduplicate_schemas(schemas: Iterable[JsonDict]) -> list[JsonDict]:
2632 return list({_make_json_hashable(schema): schema for schema in schemas}.values())
2633
2634
2635def _make_json_hashable(value: JsonValue) -> _HashableJsonValue:

Callers 3

tagged_union_schemaMethod · 0.85
get_flattened_anyofMethod · 0.85

Calls 2

_make_json_hashableFunction · 0.85
valuesMethod · 0.80

Tested by

no test coverage detected