%PDF- %PDF-
Direktori : /lib/python3/dist-packages/jsonschema/__pycache__/ |
Current File : //lib/python3/dist-packages/jsonschema/__pycache__/_legacy_validators.cpython-312.pyc |
� `��d� � �j � d dl mZ d dlmZ d� Zd� Zd� Zd� Zd� Zd� Z d � Z d � Zd� Zd� Z d � Zd� Zd� Zy)� )�_utils)�ValidationErrorc �R � | j d� }|�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_siblingsr s/ � � �*�*�V� �C� ���� ����|�|�~�� c # �f K � | j |d� sy |j � D ]� \ }}||vr�| j |d� r| j |||�� E d { ��� �:| j |d� r||vs�Q|�d|��}t |� �� �f|D ] }||vs�|�d|��}t |� �� � �� y 7 �T�w)N�object��schema_path�string� is a dependency of )�is_typer �descendr )� validator�dependencies�instancer �property� dependency�message�eachs r �dependencies_draft3r s� � �� ����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 |||�� E d{ ��� �[ 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. r N�arrayr r )r r r r )r r r r r r r r s 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 � t j |� D ]; }| j d|gi�� j |� s�(|�d|��}t |� �� �= y �w)N�type�r z is disallowed for )r �ensure_list�evolve�is_validr )r �disallowr r � disallowedr s r �disallow_draft3r( I s_ � �� ��(�(��2� +� ����F�Z�L�#9��:�C�C�H�M�#��&9�(��F�G�!�'�*�*�+�s �=A� Ac # �� K � | j |d� r| j ||� E d { ��� y t |� D ]! \ }}| j |||�� E d { ��� �# y 7 �57 � �w)Nr r )r r � enumerate)r �extendsr r �index� subschemas r �extends_draft3r. P sq � �� �����(�+��$�$�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 # �8 K � | j |d� sy | j |d� r0t |� D ]! \ }}| j |||�� E d { ��� �# y t t |� |� D ]% \ \ }}}| j ||||�� E d { ��� �' y 7 �E7 � �w)Nr r ��path�r1 r )r r* r �zip�r r r r r, �itemr- s r �items_draft3_draft4r6 X s� � �� ����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 # �8 K � | j |d� sy | j |d� r>t t |� |� D ]% \ \ }}}| j ||||�� E d { ��� �' y t |� D ]! \ }}| j |||�� E d { ��� �# y 7 �77 � �w)Nr r2 r0 )r r3 r* r r4 s r �items_draft6_draft7_draft201909r8 f s� � �� ����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 |j dd� r||k }d}n||k }d}|r|�d|� d|��}t |� �� y y �w)N�number�exclusiveMinimumFzless than or equal toz less than� is z the minimum of �r r r )r �minimumr r �failed�cmpr s r �minimum_draft3_draft4rA t sp � �� ����X�x�0�� �z�z�$�e�,��W�$��%���G�#���� ��L��S�E�)9�'��E���g�&�&� �� �AAc # � K � | j |d� sy |j dd� r||k\ }d}n||kD }d}|r|�d|� d|��}t |� �� y y �w)Nr: �exclusiveMaximumFzgreater than or equal tozgreater thanr<