KOKINIO - MANAGER
Edit File: nested_schemas.cpython-312.pyc
� �% gc � �" � d Z ddlmZ ddlmZ dddddddddd�ddd d �Zd� Z ee� e� Zedk( rZdd l m Z e � Z ed�� Zej dd� � eddd� D ]# Z ee�� Zej de� �efd�� �% yy)z� Validating highly nested schemas shouldn't cause exponential time blowups. See https://github.com/python-jsonschema/jsonschema/issues/1097. � )�cycle)� validator_forz/https://example.com/draft/2020-12/schema/strictz,https://json-schema.org/draft/2020-12/schemaT)z0https://json-schema.org/draft/2020-12/vocab/corez6https://json-schema.org/draft/2020-12/vocab/applicatorz7https://json-schema.org/draft/2020-12/vocab/unevaluatedz6https://json-schema.org/draft/2020-12/vocab/validationz5https://json-schema.org/draft/2020-12/vocab/meta-dataz=https://json-schema.org/draft/2020-12/vocab/format-annotationz3https://json-schema.org/draft/2020-12/vocab/content�metaF)z$idz$schemaz$vocabularyz$dynamicAnchorz$ref�unevaluatedPropertiesc � � t g d�� }ddddiid�}t t | dz � |� D ] \ }}d||id�}� |S )zL Produce a schema which validates deeply nested objects and arrays. )�foo�bar�baz�quux�spam�eggs�object�ham�type�string)r � properties� )r �zip�range)�levels�names�schema�_�names �I/usr/lib/python3.12/site-packages/jsonschema/benchmarks/nested_schemas.py� nested_schemar sT � � �?�@�E��u�v�x�6H�.I� J�F��u�V�a�Z�(�%�0���4�"�4��.�A�� 1��M� �__main__)�Runnerr )r z not nestedc �4 � t j t � S �N)� validator�is_valid� not_nested� r r �<lambda>r&