qiskit-documentation/docs/api/qiskit/0.24/qiskit.qobj.validate_qobj_a...

25 lines
896 B
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_qobj_against_schema
description: API reference for qiskit.qobj.validate_qobj_against_schema
in_page_toc_min_heading_level: 1
python_api_type: function
python_api_name: qiskit.qobj.validate_qobj_against_schema
---
<span id="qiskit-qobj-validate-qobj-against-schema" />
# qiskit.qobj.validate\_qobj\_against\_schema
<Function id="qiskit.qobj.validate_qobj_against_schema" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.16/qiskit/qobj/utils.py" signature="validate_qobj_against_schema(qobj)">
Validates a QObj against the .json schema.
**Parameters**
**qobj** ([*Qobj*](qiskit.qobj.Qobj "qiskit.qobj.Qobj")) Qobj to be validated.
**Raises**
[**SchemaValidationError**](qiskit.validation.jsonschema.SchemaValidationError "qiskit.validation.jsonschema.SchemaValidationError") if the qobj fails schema validation
</Function>