%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/jsonschema/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/jsonschema/__pycache__/_legacy_validators.cpython-312.pyc

�

`��d���j�ddlmZddlmZd�Zd�Zd�Zd�Zd�Zd�Z	d	�Z
d
�Zd�Zd�Z
d
�Zd�Zd�Zy)�)�_utils)�ValidationErrorc�R�|jd�}|�d|fgS|j�S)z�
    Ignore siblings of ``$ref`` if it is present.

    Otherwise, return all keywords.

    Suitable for use with `create`'s ``applicable_validators`` argument.
    z$ref)�get�items)�schema�refs  �?/usr/lib/python3/dist-packages/jsonschema/_legacy_validators.py�ignore_ref_siblingsrs/���*�*�V�
�C�
����
����|�|�~��c#�fK�|j|d�sy|j�D]�\}}||vr�|j|d�r|j|||��Ed{����:|j|d�r||vs�Q|�d|��}t|����f|D]}||vs�|�d|��}t|������y7�T�w)N�object��schema_path�string� is a dependency of )�is_typer�descendr)�	validator�dependencies�instancer�property�
dependency�message�eachs        r
�dependencies_draft3rs��������X�x�0�� ,� 2� 2� 4�3���*��8�#�����Z��2� �(�(��*�(�)��
�
��
�
�z�8�
4���)�'�N�*>�x�l�K��%�g�.�.�"�
3���x�'�!%��(<�X�L�I�G�)�'�2�2�
3�3�

�s�AB1�B/�B1�7B1�B1c#�K�|j|d�sy|j�D]Y\}}||vr�|j|d�r!|D]}||vs�|�d|��}t|�����>|j|||��Ed{����[y7��w)z�
    Support for the ``dependencies`` keyword from pre-draft 2019-09.

    In later drafts, the keyword was split into separate
    ``dependentRequired`` and ``dependentSchemas`` validators.
    rN�arrayrr)rrrr)rrrrrrrrs        r
�!dependencies_draft4_draft6_draft7r+s��������X�x�0�� ,� 2� 2� 4����*��8�#�����Z��1�"�
3���x�'�!%��(<�X�L�I�G�)�'�2�2�
3�
!�(�(��*�(�)��
�
��
�s�A
B�
.B�;B�<Bc#�K�tj|�D];}|jd|gi��j|�s�(|�d|��}t	|����=y�w)N�type�rz is disallowed for )r�ensure_list�evolve�is_validr)r�disallowrr�
disallowedrs      r
�disallow_draft3r(Is_�����(�(��2�+�
����F�Z�L�#9��:�C�C�H�M�#��&9�(��F�G�!�'�*�*�+�s�=A�Ac#��K�|j|d�r|j||�Ed{���yt|�D]!\}}|j|||��Ed{����#y7�57�	�w)Nrr)rr�	enumerate)r�extendsrr�index�	subschemas      r
�extends_draft3r.Psq��������(�+��$�$�X�w�7�7�7��%�g�.�M���y��$�$�X�y�e�$�L�L�L�M�	8��	M�s!�(A$�A �-A$�A"�A$�"A$c#�8K�|j|d�sy|j|d�r0t|�D]!\}}|j|||��Ed{����#ytt|�|�D]%\\}}}|j||||��Ed{����'y7�E7�	�w)Nrr��path�r1r)rr*r�zip�rrrrr,�itemr-s       r
�items_draft3_draft4r6Xs��������X�w�/�������)�$�X�.�	B�K�E�4� �(�(��u�5�(�A�A�A�	B�),�I�h�,?��(G�	�$�M�U�D�9� �(�(��i�e��)��
�
�	�
B��
�s$�AB�B�=B�B�B�Bc#�8K�|j|d�sy|j|d�r>tt|�|�D]%\\}}}|j||||��Ed{����'yt|�D]!\}}|j|||��Ed{����#y7�77�	�w)Nrr2r0)rr3r*rr4s       r
�items_draft6_draft7_draft201909r8fs��������X�w�/�������(�(+�I�h�,?��(G�	�$�M�U�D�9� �(�(��i�e��)��
�
�	�
%�X�.�	B�K�E�4� �(�(��u�5�(�A�A�A�	B�	
��

B�s$�AB�B�/B�B�B�Bc#�K�|j|d�sy|jdd�r||k}d}n||k}d}|r|�d|�d|��}t|���yy�w)N�number�exclusiveMinimumFzless than or equal toz	less than� is z the minimum of �rrr)r�minimumrr�failed�cmprs       r
�minimum_draft3_draft4rAtsp�������X�x�0��
�z�z�$�e�,��W�$��%���G�#����
��L��S�E�)9�'��E���g�&�&����AAc#�K�|j|d�sy|jdd�r||k\}d}n||kD}d}|r|�d|�d|��}t|���yy�w)Nr:�exclusiveMaximumFzgreater than or equal tozgreater thanr<z the maximum of r=)r�maximumrrr?r@rs       r
�maximum_draft3_draft4rF�sp�������X�x�0��
�z�z�$�e�,��W�$��(���G�#����
��L��S�E�)9�'��E���g�&�&��rBc#�K�|j|d�sy|j�D]�\}}||vr!|j|||||��Ed{����+|jdd�s�>t	|�d��}|jd|d||��|jj|�|jj|dg�|����y7�}�w)Nrr2�requiredFz is a required property)r�validator_valuerr)
rrrrr�_setr1�
appendleftr�extend)r�
propertiesrrrr-�errors       r
�properties_draft3rO�s��������X�x�0��)�/�/�1����)��x�� �(�(���"���$�	)��
�
��]�]�:�u�
-�#�x�l�2I�$J�K�E��J�J�$� )�*� 5�!��	
�
�
�J�J�!�!�(�+����$�$�h�
�%;�<��K�%�
�s�A	C�C	�C�$A&Cc#�K�tj|�}g}t|�D]^\}}|j|d�r3t	|j|||���}|sy|j
|��K|j||�s�^yg}|D] }	|jt|d���"t|�ddj|���|����y#t$r|jt|��Y�lwxYw�w)Nrr�namez is not of type z, )�context)rr#r*r�listrrL�append�repr�	Exceptionr�join)	r�typesrr�
all_errorsr,r!�errors�reprss	         r
�type_draft3r\�s�������u�%�E��J� ��'�
���t����T�8�,��)�+�+�H�d��+�N�O�F������f�%�� � ��4�0��
����	)�D�
)����T�$�v�,�/�0�	)�
��l�*�4�9�9�U�+;�*<�=��
�	
���
)����T�$�Z�(�
)�s0�BC:�
C:�C�+&C:�#C7�4C:�6C7�7C:c#���K��j|d�syt��fd�|D��std|�d����yy�w)Nrc3�`�K�|]%}�j���j|����'y�w)r"N)r$r%)�.0�element�containsrs  ��r
�	<genexpr>z)contains_draft6_draft7.<locals>.<genexpr>�s2�������	�����)�2�2�7�;��s�+.zNone of z! are valid under the given schema)r�anyr)rrarrs``  r
�contains_draft6_draft7rd�sP��������X�w�/���������x�l�"C�D�
�	
�	�s�<Ac�\�|jj|j}}t|jjdd�D]5}|jj|�\}}|j
d�r|}�5n|jd�}|jj||�}	|	gS)N�z$recursiveAnchor�#)	�resolver�resolution_scoper�reversed�
_scopes_stack�resolver�lstrip�resolve_fragment)
r�recursiveRefrr�
lookup_url�targetr�next_target�fragmentr-s
          r
roro�s���"�+�+�<�<�i�>N�>N��J���+�+�9�9�!�"�=�>���"+�"4�"4�"<�"<�T�"B��
�K��?�?�-�.� �F����"�"�3�'�H��"�"�3�3�F�H�E�I��
�IrN)�
jsonschemar�jsonschema.exceptionsrrrrr(r.r6r8rArFrOr\rdro�rr
�<module>rwsN���1��3�.�<+�M��B�
'� 
'� �2
�4

�r

Zerion Mini Shell 1.0