HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/lib/python3/dist-packages/jsonschema/__pycache__/_legacy_validators.cpython-38.pyc
U

>��]��@shddlmZddlmZddlmZdd�Zdd�Zdd	�Zd
d�Z	dd
�Z
dd�Zdd�Zdd�Z
dS)�)�_utils)�	iteritems)�ValidationErrorc	cs�|�|d�sdSt|�D]�\}}||kr*q|�|d�rT|j|||d�D]
}|VqFq|�|d�r|||kr�td||f�Vq|D]"}||kr�d}t|||f�Vq�qdS)N�object��schema_path�stringz%r is a dependency of %r)�is_typer�descendr)	�	validatorZdependencies�instance�schema�propertyZ
dependency�errorZeach�message�r�?/usr/lib/python3/dist-packages/jsonschema/_legacy_validators.py�dependencies_draft3s*�


�rccs8t�|�D](}|�|d|gi�r
td||f�Vq
dS)N�typez%r is disallowed for %r)r�ensure_listZis_validr)rZdisallowrr
Z
disallowedrrr�disallow_draft3s

�rccsZ|�|d�r(|�||�D]
}|VqdSt|�D]$\}}|j|||d�D]
}|VqHq0dS)Nrr)r	r
�	enumerate)rZextendsrr
r�index�	subschemarrr�extends_draft3'srccs�|�|d�sdS|�|d�rLt|�D]$\}}|j|||d�D]
}|Vq<q$n:tt|�|�D]*\\}}}|j||||d�D]
}|VqxqZdS)NZarrayr)�path�rr)r	rr
�zip)r�itemsrr
r�itemrrrrr�items_draft3_draft41s�
r ccsR|�|d�sdS|�dd�r*||k}d}n||k}d}|rNtd|||f�VdS)N�numberZexclusiveMinimumFzless than or equal toz	less thanz%r is %s the minimum of %r�r	�getr)rZminimumrr
�failed�cmprrr�minimum_draft3_draft4As�r&ccsR|�|d�sdS|�dd�r*||k}d}n||k}d}|rNtd|||f�VdS)Nr!ZexclusiveMaximumFzgreater than or equal tozgreater thanz%r is %s the maximum of %rr")rZmaximumrr
r$r%rrr�maximum_draft3_draft4Rs�r'ccs�|�|d�sdSt|�D]�\}}||krL|j|||||d�D]
}|Vq>q|�dd�rtd|�}|jd|d||d�|j�|�|j�	|dg�|VqdS)NrrZrequiredFz%r is a required property)rZvalidator_valuerr
)
r	rr
r#rZ_setr�
appendleftr�extend)rZ
propertiesrr
rrrrrr�properties_draft3cs,�

�r*ccs�t�|�}g}t|�D]P\}}|�|d�rTt|j|||d��}|sHdS|�|�q|�||�rdSqtt�||�|d�VdS)Nrr)�context)	rrrr	�listr
r)rZ	types_msg)r�typesrr
Z
all_errorsrr�errorsrrr�type_draft3}s

�r/N)Z
jsonschemarZjsonschema.compatrZjsonschema.exceptionsrrrrr r&r'r*r/rrrr�<module>s