<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet"
        integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css"
        integrity="sha512-SzlrxWUlpfuzQ+pcUCosxcglQRNAq/DZjVsC0lE40xsADsfeQoEypE+enwcOiGjk/bSuGGKHEyjSoQ1zVisanQ=="
        crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
</html>
B
    ÉpSeè  ã               @   sh   d dl mZ d dlmZ d dlmZ dd„ Zdd„ Zdd	„ Zd
d„ Z	dd„ Z
dd„ Zdd„ Zdd„ ZdS )é    )Ú_utils)Ú	iteritems)ÚValidationErrorc       	      c   s¶   |   |d¡sd S x t|ƒD ]”\}}||kr,q|   |d¡rZxt| j|||dD ]
}|V  qJW q|   |d¡r‚||kr®td||f ƒV  qx*|D ]"}||krˆd}t|||f ƒV  qˆW qW d S )NÚobject)Úschema_pathÚstringz%r is a dependency of %r)Úis_typer   Údescendr   )	Ú	validatorZdependenciesÚinstanceÚschemaÚpropertyZ
dependencyÚerrorZeachÚmessage© r   úN/opt/alt/python37/lib/python3.7/site-packages/jsonschema/_legacy_validators.pyÚdependencies_draft3   s"    
r   c             c   s<   x6t  |¡D ](}|  |d|gi¡rtd||f ƒV  qW d S )NÚtypez%r is disallowed for %r)r   Úensure_listZis_validr   )r
   Zdisallowr   r   Z
disallowedr   r   r   Údisallow_draft3   s    r   c             c   sf   |   |d¡r,x|  ||¡D ]
}|V  qW d S x4t|ƒD ](\}}x| j|||dD ]
}|V  qPW q6W d S )Nr   )r   )r   r	   Ú	enumerate)r
   Zextendsr   r   r   ÚindexÚ	subschemar   r   r   Úextends_draft3'   s    
r   c             c   sš   |   |d¡sd S |   |d¡rTxxt|ƒD ](\}}x| j|||dD ]
}|V  q@W q&W nBx@tt|ƒ|ƒD ].\\}}}x | j||||dD ]
}|V  q„W qdW d S )NÚarrayr   )Úpath)r   r   )r   r   r	   Úzip)r
   Úitemsr   r   r   Úitemr   r   r   r   r   Úitems_draft3_draft41   s    r   c             c   sR   |   |d¡sd S | dd¡r*||k}d}n||k }d}|rNtd|||f ƒV  d S )NÚnumberZexclusiveMinimumFzless than or equal toz	less thanz%r is %s the minimum of %r)r   Úgetr   )r
   Zminimumr   r   ÚfailedÚcmpr   r   r   Úminimum_draft3_draft4A   s    r$   c             c   sR   |   |d¡sd S | dd¡r*||k}d}n||k}d}|rNtd|||f ƒV  d S )Nr    ZexclusiveMaximumFzgreater than or equal tozgreater thanz%r is %s the maximum of %r)r   r!   r   )r
   Zmaximumr   r   r"   r#   r   r   r   Úmaximum_draft3_draft4R   s    r%   c             c   sª   |   |d¡sd S x”t|ƒD ]ˆ\}}||krRxv| j|| |||dD ]
}|V  qBW q| dd¡rtd| ƒ}|jd|d ||d |j |¡ |j 	|dg¡ |V  qW d S )Nr   )r   r   ÚrequiredFz%r is a required property)r
   Zvalidator_valuer   r   )
r   r   r	   r!   r   Z_setr   Ú
appendleftr   Úextend)r
   Z
propertiesr   r   r   r   r   r   r   r   Úproperties_draft3c   s(    r)   c             c   s‚   t  |¡}g }xnt|ƒD ]L\}}|  |d¡rTt| j|||dƒ}|sHd S | |¡ q|  ||¡rd S qW tt  ||¡|dV  d S )Nr   )r   )Úcontext)	r   r   r   r   Úlistr	   r(   r   Z	types_msg)r
   Útypesr   r   Z
all_errorsr   r   Úerrorsr   r   r   Útype_draft3}   s    
r.   N)Z
jsonschemar   Zjsonschema.compatr   Zjsonschema.exceptionsr   r   r   r   r   r$   r%   r)   r.   r   r   r   r   Ú<module>   s   
