Ë
    <Ö%i¦  ã                   ó"   — d dl Z d dlZd dlZd„ Zy)é    Nc                 óh  — | d   j                  d«      rBt        j                  j                  t        j                  j	                  t
        «      d«      }na| d   j                  d«      rBt        j                  j                  t        j                  j	                  t
        «      d«      }nt        d«      ‚t        |«      5 }t        j                  |«      }ddd«       dd	l
m} t        j                   |«       j                  | «      «      } t        j                  | ¬
«       y# 1 sw Y   ŒPxY w)av  
    Validate generated API schema against OpenAPI 3.0.X json schema specification.
    Note: On conflict, the written specification always wins over the json schema.

    OpenApi3 schema specification taken from:

    https://github.com/OAI/OpenAPI-Specification/blob/master/schemas/v3.0/schema.json
    https://github.com/OAI/OpenAPI-Specification/blob/9dff244e5708fbe16e768738f4f17cf3fddf4066/schemas/v3.0/schema.json

    https://github.com/OAI/OpenAPI-Specification/blob/main/schemas/v3.1/schema.json
    https://github.com/OAI/OpenAPI-Specification/blob/9dff244e5708fbe16e768738f4f17cf3fddf4066/schemas/v3.1/schema.json
    Úopenapiz3.0zopenapi_3_0_schema.jsonz3.1zopenapi_3_1_schema.jsonz%No validation specification availableNr   )ÚOpenApiJsonRenderer)ÚinstanceÚschema)Ú
startswithÚosÚpathÚjoinÚdirnameÚ__file__ÚRuntimeErrorÚopenÚjsonÚloadÚdrf_spectacular.renderersr   ÚloadsÚrenderÚ
jsonschemaÚvalidate)Ú
api_schemaÚschema_spec_pathÚfhÚopenapi3_schema_specr   s        ú[/usr/local/footviz/venv/lib/python3.12/site-packages/drf_spectacular/validation/__init__.pyÚvalidate_schemar      sÝ   € ð )Ñ×'Ñ'¨Ô.ÜŸ7™7Ÿ<™<¬¯©¯©¼Ó(AÐC\Ó]ÑØ	IÑ	×	)Ñ	)¨%Ô	0ÜŸ7™7Ÿ<™<¬¯©¯©¼Ó(AÐC\Ó]ÑäÐBÓCÐCä	ÐÓ	ð - 2Ü#Ÿy™y¨›}Ð÷-õ >Ü—‘Ñ/Ó1×8Ñ8¸ÓDÓE€Jä×Ñ Ð4HÖI÷-ð -ús   ÃD(Ä(D1)r   r	   r   r   © ó    r   ú<module>r      s   ðÛ Û 	ã óJr   