qiskit-documentation/docs/api/qiskit/0.29/qiskit.validation.jsonschem...

25 lines
1.2 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: validate_json_against_schema
description: API reference for qiskit.validation.jsonschema.validate_json_against_schema
in_page_toc_min_heading_level: 1
python_api_type: function
python_api_name: qiskit.validation.jsonschema.validate_json_against_schema
---
# qiskit.validation.jsonschema.validate\_json\_against\_schema
<Function id="qiskit.validation.jsonschema.validate_json_against_schema" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.18/qiskit/validation/jsonschema/schema_validation.py" signature="validate_json_against_schema(json_dict, schema, err_msg=None)">
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**](qiskit.validation.jsonschema.SchemaValidationError "qiskit.validation.jsonschema.SchemaValidationError") Raised if validation fails.
</Function>