
    gc                     N   d Z ddlmZ ddlmZ dZ edddifgd  ee      D        d	d
  eee      D        d      Z ee      Z	dZ
dZedk(  rT e       Zej                  dd        ej                  dd        ej                  dd        ej                  dd        yy)z|
A benchmark for validation of schemas containing lots of useless keywords.

Checks we filter them out once, ahead of time.
    )Runner)Draft202012Validatori notconst*   c              #   6   K   | ]  }t        |      |f  y wNstr.0is     [/var/www/openai/venv/lib/python3.12/site-packages/jsonschema/benchmarks/useless_keywords.py	<genexpr>r      s     	21!3q61+1   )typeintegerc              #   6   K   | ]  }t        |      |f  y wr	   r
   r   s     r   r   r      s     	?>!3q61+>r   )minimum%        __main__zbeginning of schemac                  ,    t         j                  d      S )Nr   	validatoris_valid     r   <lambda>r       s    Y5G5G5Kr   zmiddle of schemac                  ,    t         j                  d      S )Nfoor   r   r   r   r    r       s    )2D2DU2Kr   zend of schemac                  ,    t         j                  d      S )Nr   r   r   r   r   r    r       s    y/A/A"/Er   validc                  ,    t         j                  d      S )Nr   r   r   r   r   r    r        s    y'9'9$'?r   N)__doc__pyperfr   
jsonschemar   NUM_USELESSdictrangeschemar   r$   invalid__name__runner
bench_funcr   r   r   <module>r1      s     +		"	2u[1	2 	 
@u[+>	?	
 	
 !(	
 zXF
+-KL
(*KL
o'EF
g?@ r   