qiskit.validation.jsonschema.validate_json_against_schema¶
-
validate_json_against_schema
(json_dict, schema, err_msg=None)[source]¶ Validates JSON dict against a schema.
- Parameters
json_dict (dict) – JSON to be validated.
schema (dict or str) – JSON schema dictionary or the name of one of the standards schemas in Qiskit to validate against it. The list of standard schemas is:
backend_configuration
,backend_properties
,backend_status
,default_pulse_configuration
,job_status
,qobj
,result
.err_msg (str) – Optional error message.
- Raises
SchemaValidationError – Raised if validation fails.