kfZddlmZddlmZddlmZdZdZdZdZ dZ d Z d Z d Z d S) )_utils) iteritems)ValidationErrorc#~K||dsdSt|D]\}}||vr ||dr ||||D]}|V@||dr||vrt|d|Vq|D]}||vrd}t|||fzVdS)Nobject schema_pathstringz is a dependency of z%r is a dependency of %r)is_typerdescendr) validator dependenciesinstanceschemaproperty dependencyerroreachmessages }/builddir/build/BUILD/imunify360-venv-2.3.5/opt/imunify360/venv/lib/python3.11/site-packages/jsonschema/_legacy_validators.pydependencies_draft3rsJ   Xx 0 0 ), 7 7FF* 8 # #    Z 2 2 F"***(+      z8 4 4 F))%2<**hhG# F Fx''8G)'T84D*DEEEEE FFFc#Ktj|D]1}||d|girt|d|V2dS)Ntypez is disallowed for )r ensure_listis_validr)r disallowrr disalloweds rdisallow_draft3rst(22   h*(> ? ? !-7ZZB   rc#K||dr|||D]}|VdSt|D]$\}}||||D]}|V%dS)Nrr)r r enumerate)r extendsrrrindex subschemas rextends_draft3r%'s(++&&x99  EKKKK%g..y&&x&NN  EKKKK rc#^K||dsdS||dr6t|D]$\}}||||D]}|V%dStt||D](\\}}}|||||D]}|V)dS)Narrayr)pathr(r )r r!r zip)r itemsrrr#itemrr$s ritems_draft3_draft4r-1s    Xw / /)) $X..  KE4"**4U*CC      ),Ih,?,?(G(G   $MUD9"**ie+      rc#K||dsdS|ddr ||k}d}n||k}d}|rt|d|d|VdSdS)NnumberexclusiveMinimumFzless than or equal toz less than is z the minimum of r getr)r minimumrrfailedcmps rminimum_draft3_draft4r7As   Xx 0 0 zz$e,,W$%G#  ,4HHccc77 C         rc#K||dsdS|ddr ||k}d}n||k}d}|rt|d|d|VdSdS)Nr/exclusiveMaximumFzgreater than or equal toz greater thanr1z the maximum of r2)r maximumrrr5r6s rmaximum_draft3_draft4r;Rs   Xx 0 0 zz$e,,W$(G#  ,4HHccc77 C         rc#K||dsdSt|D]\}}||vr'||||||D]}|V0|ddrkt d|z}|d|d|||j||j |dg|VdS)Nrr)requiredFz%r is a required property)r validator_valuerr) r rr r3r_setr( appendleftr extend)r propertiesrrrr$rs rproperties_draft3rCcs0   Xx 0 0(44) x  "**"$ +     ]]:u - - #$?($JKKE JJ$ )* 5!     J ! !( + + +   $ $h %; < < <KKK'rc#Ktj|}g}t|D]t\}}||dr@t ||||}|sdS||[|||rdSuttj|||VdS)Nrr)context) rrr!r listr rAr types_msg)r typesrr all_errorsr#rerrorss r type_draft3rK}s  u % %EJ ''   t   T8 , , )++Hd+NNOOF    f % % % %  400    Xu - -z        rN) jsonschemarjsonschema.compatrjsonschema.exceptionsrrrr%r-r7r;rCrKrrrPs''''''111111FFF2       "   "4     r