MCPcopy
hub / github.com/pydantic/pydantic / json

Method json

pydantic/v1/error_wrappers.py:67–68  ·  view source on GitHub ↗
(self, *, indent: Union[None, int, str] = 2)

Source from the content-addressed store, hash-verified

65 return self._error_cache
66
67 def json(self, *, indent: Union[None, int, str] = 2) -> str:
68 return json.dumps(self.errors(), indent=indent, default=pydantic_encoder)
69
70 def __str__(self) -> str:
71 errors = self.errors()

Callers

nothing calls this directly

Calls 1

errorsMethod · 0.95

Tested by

no test coverage detected