File: //var/opt/nydus/ops/jsonschema/__pycache__/__init__.cpython-39.pyc
a
�,�he � @ sl d Z ddlZddlmZ ddlmZ ddlmZmZ ddl m
Z
mZmZm
Z
mZmZmZ dd� Zg d �ZdS )
a9
An implementation of JSON Schema for Python.
The main functionality is provided by the validator classes for each of the
supported JSON Schema versions.
Most commonly, `jsonschema.validators.validate` is the quickest way to simply
validate a given instance under a schema, and will create a validator
for you.
� N)�
FormatChecker)�TypeChecker)�SchemaError�ValidationError)�Draft3Validator�Draft4Validator�Draft6Validator�Draft7Validator�Draft201909Validator�Draft202012Validator�validatec C sX | dkr.t jdtdd� ddlm} |�d�S | dkrXdd lm} t j|jtdd� |S | d
kr�t jdtdd� ddl m
} |S | d
kr�t jdtdd� ddl m} |S | dkr�t jdtdd� ddlm
} |S | dk� r�ddl m} t j|jtdd� |S ttttttd�}|�| �}|d u�r@t jd| � d�tdd� |jS tdt� d| � ���d S )N�__version__z�Accessing jsonschema.__version__ is deprecated and will be removed in a future release. Use importlib.metadata directly to query for jsonschema's version.� )�
stacklevelr )�metadataZ
jsonschemaZRefResolver)�_RefResolver� ErrorTreez�Importing ErrorTree directly from the jsonschema package is deprecated and will become an ImportError. Import it from jsonschema.exceptions instead.)r �FormatErrorz�Importing FormatError directly from the jsonschema package is deprecated and will become an ImportError. Import it from jsonschema.exceptions instead.)r � Validatorz�Importing Validator directly from the jsonschema package is deprecated and will become an ImportError. Import it from jsonschema.protocols instead.)r ZRefResolutionError)�_RefResolutionError)Zdraft3_format_checkerZdraft4_format_checkerZdraft6_format_checkerZdraft7_format_checkerZdraft201909_format_checkerZdraft202012_format_checkerzAccessing jsonschema.z� is deprecated and will be removed in a future release. Instead, use the FORMAT_CHECKER attribute on the corresponding Validator.zmodule z has no attribute )�warnings�warn�DeprecationWarning� importlibr �version�jsonschema.validatorsr Z_DEPRECATION_MESSAGE�jsonschema.exceptionsr r Zjsonschema.protocolsr r r r r r r
r �getZFORMAT_CHECKER�AttributeError�__name__) �namer r r r r r Zformat_checkersZValidatorForFormat� r! �D/opt/nydus/tmp/pip-target-wkfpz8uv/lib/python/jsonschema/__init__.py�__getattr__ s� �
����
��
�r# )r r r r r
r r r r r r )�__doc__r Zjsonschema._formatr Zjsonschema._typesr r r r r r r r r r
r r r# �__all__r! r! r! r"