L id "dZddlmZddlmZddddddddddddd d Zd ZeeeZed k(rZdd l m Z e Z edZ e jddedddD]#ZeeZe jdeefd%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/contentmetaF)z$idz$schemaz $vocabularyz$dynamicAnchorz$refunevaluatedPropertiesctgd}ddddiid}tt|dz |D] \}}d||id}|S)zL Produce a schema which validates deeply nested objects and arrays. )foobarbazquuxspameggsobjecthamtypestring)r properties)rziprange)levelsnamesschema_names j/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/jsonschema/benchmarks/nested_schemas.py nested_schemars[ ? @Euvx6H.I JFuVaZ(%0B4"4.AB M__main__)Runnerr)rz not nestedc4tjtSN) validatoris_valid not_nestedrrr&1sI,>,>z,Jr z nested * c,tj|Sr!)r"r#)rs rr&r&7s)"4"4V"<rN)__doc__ itertoolsrjsonschema.validatorsr metaschemaishrr"__name__pyperfrrunnerr$ bench_funcrrrr%rrr2s / ===ABFCGBFAEIM?C :"! (  )M- ( 7  z XFa(J l$JK2q/ f-x  <  r