27 lines
1.3 KiB
Plaintext
27 lines
1.3 KiB
Plaintext
---
|
||
title: validate_json_against_schema (v0.31)
|
||
description: API reference for qiskit.validation.jsonschema.validate_json_against_schema in qiskit v0.31
|
||
in_page_toc_min_heading_level: 1
|
||
python_api_type: function
|
||
python_api_name: qiskit.validation.jsonschema.validate_json_against_schema
|
||
---
|
||
|
||
<span id="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>
|
||
|