관리-도구
편집 파일: _validators.cpython-311.pyc
� �܋f�- � � � d dl Z d dlmZmZmZmZmZmZmZ d dl m Z mZ d dlm Z d� Zd� Zd� Zd� Zd � Zd � Zd� Zd� Zd � Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z d� Z!d� Z"d� Z#d� Z$d� Z%d� Z&d� Z'd� Z(d � Z)d!� Z*d"� Z+d#� Z,d$� Z-dS )%� N)�ensure_list�equal� extras_msg�find_additional_properties� types_msg�unbool�uniq)�FormatError�ValidationError)� iteritemsc # � K � | � |d� � sd S t |� � D ]O\ }}t |� � D ]:\ }}t j ||� � r | � ||||�� � D ]}|V � ��;�Pd S �N�object��path�schema_path)�is_typer �re�search�descend) � validator�patternProperties�instance�schema�pattern� subschema�k�v�errors �M/opt/cloudlinux/venv/lib64/python3.11/site-packages/jsonschema/_validators.pyr r s� � � � ����X�x�0�0� ���'�(9�:�:� � �����h�'�'� � �D�A�q��y��!�$�$� �&�.�.��y�q�g� /� � � � �E� �K�K�K�K�� � � � c # � K � | � |d� � sd S |D ] }| � ||�� � D ]}|V � ��!d S )Nr )r r )r r )r � propertyNamesr r �propertyr s r r# r# sx � � � ����X�x�0�0� ���� � ���&�&�� � '� � � � �E� �K�K�K�K� �� r! c # � K � | � |d� � sd S t t ||� � � � }| � |d� � r,|D ]'}| � || ||�� � D ]}|V � ��(d S |s�|r�d|v r�t |d � � }t |� � dk rd}nd}d� t t t |� � � � � � �d|�d d� t t |� � � � ��}t |� � V � d S d }t |t |� � z � � V � d S d S d S )Nr �r r � �does�do�, � z not match any of the regexes: z8Additional properties are not allowed (%s %s unexpected))r �setr r �sorted�len�join�map�reprr r ) r �aPr r �extras�extrar �patterns�verbs r �additionalPropertiesr7 ) s� � � � ����X�x�0�0� ��� �+�H�f�=�=� >� >�F�����X�&�&� >�� � �E�"�*�*�8�E�?�B�U�*�K�K� � ������� � � � � >�F� >��&�(�(��f�%8�9�:�:�H��6�{�{�a��������� � �#�d�F�6�N�N�3�3�4�4�4�4����� � �#�d�H�-�-�.�.�.��E� "�%�(�(�(�(�(�(�(�N�E�!�%�*�V�*<�*<�"<�=�=�=�=�=�=�=�>� >� >� >r! c # �^ K � | � |d� � sd S | � |d� � rHt t |� � |� � D ](\ \ }}}| � ||||�� � D ]}|V � ��)d S t |� � D ]$\ }}| � |||�� � D ]}|V � ��%d S )N�arrayr r&