|
OpenQuizz
Une application de gestion des contenus pédagogiques
|
Data Structures | |
| class | LazySchema |
| class | SchemaValidationError |
Functions | |
| def | validate (data) |
Variables | |
| OAS_20 = LazySchema("oas-2.0.json") | |
| dictionary | VERSIONS |
| def flask_restx.schemas.validate | ( | data | ) |
Validate an OpenAPI specification.
Supported OpenAPI versions: 2.0
:param data dict: The specification to validate
:returns boolean: True if the specification is valid
:raises SchemaValidationError: when the specification is invalid
:raises flask_restx.errors.SpecsError: when it's not possible to determinate
the schema to validate against
.. versionadded:: 0.12.1
| OAS_20 = LazySchema("oas-2.0.json") |