qiskit-documentation/docs/api/qiskit/0.31/validation.mdx

31 lines
1.6 KiB
Plaintext

---
title: validation (v0.31)
description: API reference for qiskit.validation in qiskit v0.31
in_page_toc_min_heading_level: 2
python_api_type: module
python_api_name: qiskit.validation
---
<span id="module-qiskit.validation" />
<span id="qiskit-validation" />
<span id="models-and-schemas-qiskit-validation" />
# Models and Schemas
`qiskit.validation`
## JSON Schema
| | |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------- |
| [`jsonschema.validate_json_against_schema`](qiskit.validation.jsonschema.validate_json_against_schema "qiskit.validation.jsonschema.validate_json_against_schema")(…) | Validates JSON dict against a schema. |
## Exceptions
| | |
| -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------- |
| [`jsonschema.SchemaValidationError`](qiskit.validation.jsonschema.SchemaValidationError "qiskit.validation.jsonschema.SchemaValidationError")(\*message) | Represents an error during JSON Schema validation. |