
    gZ              	          d Z ddlZddlmZmZ ddlZ ej                   ej                          ej                          ej                  dd       ej                               Z ej                   ej                   ej                          ej                   ej                         e            d       Z eee      d	        Zd
 Zedk(  rddlZ e        yy)z
Fuzzing setup for OSS-Fuzz.

See https://github.com/google/oss-fuzz/tree/master/projects/jsonschema for the
other half of the setup here.
    N)given
strategiesF)	allow_nanallow_infinityc                 R    t        j                  t        j                         |       S )N)r   dictionariestext)inners    S/var/www/openai/venv/lib/python3.12/site-packages/jsonschema/tests/fuzz_validate.py<lambda>r      s    001BEJ    )baseextendobj1obj2c                     	 t        j                  | |       y # t         j                  j                  $ r Y y t         j                  j                  $ r Y y w xY w)N)instanceschema)
jsonschemavalidate
exceptionsValidationErrorSchemaErrorr   s     r   test_schemasr      sL    T$7  00   ,, s    AAAc                      t        j                          t        j                  t        j                  t
        j                  j                  d       t        j                          y )NT)enable_python_coverage)	atherisinstrument_allSetupsysargvr   
hypothesisfuzz_one_inputFuzz r   r   mainr'   &   s>    MM..#
 LLNr   __main__)__doc__r!   r#   r   r   r   one_ofbooleansintegersfloatsr	   PRIM	recursiver   DICTr   r'   __name__r   r&   r   r   <module>r2      s     ( zJJJe<JOO	 z			


 148
 K Dt  zF r   