MCPcopy
hub / github.com/pydantic/pydantic / validate_json

Method validate_json

pydantic-core/tests/conftest.py:73–74  ·  view source on GitHub ↗
(self, json_str: str, strict: bool | None = None, context: Any = None)

Source from the content-addressed store, hash-verified

71 return self.validator.validate_python(py_input, strict=strict, context=context)
72
73 def validate_json(self, json_str: str, strict: bool | None = None, context: Any = None):
74 return self.validator.validate_json(json_str, strict=strict, context=context)
75
76 def validate_test(
77 self, py_input, strict: bool | None = None, context: Any = None, extra: ExtraBehavior | None = None

Callers 15

test_internal_errorFunction · 0.45
test_boolFunction · 0.45
test_input_typesFunction · 0.45
test_input_type_invalidFunction · 0.45
test_nullFunction · 0.45
test_strFunction · 0.45
test_bytesFunction · 0.45
test_intFunction · 0.45
test_floatFunction · 0.45
test_typed_dictFunction · 0.45
test_float_no_remainderFunction · 0.45
test_error_locFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected