a Ë$�]èã@shddlmZddlmZddlmZdd„Zdd„Zdd „Zd d „Z d d „Z dd„Z dd„Z dd„Z dS)é)Ú_utils)Ú iteritems)ÚValidationErrorc csª| |d¡sdSt|ƒD]Œ\}}||vr*q| |d¡rT|j|||d�D] }|VqFq| |d¡r|||vr¤td||fƒVq|D]"}||vr€d}t|||fƒVq€qdS)NÚobject©Ú schema_pathÚstringz%r is a dependency of %r)Úis_typerÚdescendr) Ú validatorZ dependenciesÚinstanceÚschemaÚpropertyZ dependencyÚerrorZeachÚmessage©rúA/usr/lib/python3.9/site-packages/jsonschema/_legacy_validators.pyÚdependencies_draft3s&  ÿ    ÿrccs8t |¡D](}| |d|gi¡r td||fƒVq dS)NÚtypez%r is disallowed for %r)rÚ ensure_listZis_validr)r Zdisallowr r Z disallowedrrrÚdisallow_draft3s  ÿrccsZ| |d¡r(| ||¡D] }|VqdSt|ƒD]$\}}|j|||d�D] }|VqHq0dS)Nrr)r r Ú enumerate)r Zextendsr r rÚindexÚ subschemarrrÚextends_draft3's rccsŠ| |d¡sdS| |d¡rLt|ƒD]$\}}|j|||d�D] }|Vqq| dd¡rtd|ƒ}|jd|d||d�|j |¡|j  |dg¡|VqdS)NrrÚrequiredFz%r is a required property)r Zvalidator_valuer r ) r rr r#rZ_setrÚ appendleftrÚextend)r Z propertiesr r rrrrrrÚproperties_draft3cs, ü    ü r+ccs‚t |¡}g}t|ƒD]P\}}| |d¡rTt|j|||d�ƒ}|sHdS| |¡q| ||¡rdSqtt ||¡|d�VdS)Nrr)Úcontext) rrrr Úlistr r*rZ types_msg)r Útypesr r Z all_errorsrrÚerrorsrrrÚ type_draft3}s     ÿr0N)Z jsonschemarZjsonschema.compatrZjsonschema.exceptionsrrrrr r&r'r+r0rrrrÚs