+
     hW;  c                   s    ^ RI t ^ RIHt ^ RIHt ^ RIHt R tR tR t	R t
R	 tR
 tR tR tR tR tR tR tR tR tR tR tR tR tR# )i    N)lookup_recursive_ref)_utils)ValidationErrorc                sV    V P                  R4      pVe   RV3.# V P                  4       # )z
Ignore siblings of ``$ref`` if it is present.

Otherwise, return all keywords.

Suitable for use with `create`'s ``applicable_validators`` argument.
$ref)getitems)schemarefs   & @/usr/lib/python3.14/site-packages/jsonschema/_legacy_keywords.pyignore_ref_siblingsr	   	   s/     **V
C
||~    c              #   s  "   V P                  VR 4      '       g   R# VP                  4        F  w  rEWB9  d   K  V P                  VR 4      '       d   V P                  W%VR7       Rj  xL
  KB  V P                  VR4      '       d!   WR9  d   V: RV: 2p\        V4      x  Kx  Kz  V F!  pWr9  g   K  V: RV: 2p\        V4      x  K#  	  K  	  R#  Lk5i)objectNschema_pathZstring is a dependency of )is_typer   descendr   )	validatordependenciesinstancer   property
dependencymessageeach   &&&&    r   dependencies_draft3r      s     Xx00 , 2 2 4#Z22 ((( )    z844)'N*>xlK%g.. * #'!%(<XLIG)'22 # !5
s$   ACC(C)C(C4!Cc              #  s@  "   V P                  VR4      '       g   R# VP                  4        Fi  w  rEWB9  d   K  V P                  VR4      '       d*   V F!  pWb9  g   K  V: RV: 2p\        V4      x  K#  	  KN  V P                  W%VR7       Rj  xL
  Kk  	  R#  L
5i)z
Support for the ``dependencies`` keyword from pre-draft 2019-09.

In later drafts, the keyword was split into separate
``dependentRequired`` and ``dependentSchemas`` validators.
r   Narrayr   r   )r   r   r   r   )r   r   r   r   r   r   r   r   r   r   !dependencies_draft4_draft6_draft7r   /   s      Xx00 , 2 2 4#Z11"'!%(<XLIG)'22 #
 !((( )    !5s   ABB2BBBc              #   s   "   \         P                  ! V4       FE  pV P                  R V./R7      P                  V4      '       g   K/  V: RV: 2p\	        V4      x  KG  	  R# 5i)typer   z is disallowed for N)r   ensure_listevolveis_validr   )r   Zdisallowr   r   Z
disallowedr      &&&&  r   disallow_draft3r"   M   s\     ((2
FZL#9:CCHMM#&9(FG!'** 3s   AA$A$c              #   s   "   V P                  VR 4      '       d   V P                  W!4       Rj  xL
  R# \        V4       F   w  rEV P                  W%VR7       Rj  xL
  K"  	  R#  L7 L5i)r   Nr   )r   r   	enumerate)r   Zextendsr   r   index	subschemar!   r   extends_draft3r&   T   se     (++$$X777%g.$$Xe$LLL / 	8 	Ms!   -A+A',A+A)A+)A+c              #   sT  "   V P                  VR 4      '       g   R# V P                  VR4      '       d2   \        V4       F   w  rEV P                  WQVR7       Rj  xL
  K"  	  R# \        \        V4      V4       F#  w  w  rEpV P                  WVWDR7       Rj  xL
  K%  	  R#  LH L5i)r   Nr   pathr(   r   )r   r#   r   zipr   r   r   r   r$   itemr%      &&&&   r   items_draft3_draft4r.   \   s     Xw//))$X.KE ((5(AAA / ),Ih,?(G$MU9 ((e )    )H Bs(   2B(&B(B$=B(B&B(&B(c              #   s\  "   V P                  VR 4      '       d)   V P                  VP                  R/ 4      R4      '       d   R# \        VP                  R. 4      4      pV P                  VR4      '       d6   \        W$R VR7       F   w  rVV P	                  WaVR7       Rj  xL
  K"  	  R# V'       gt   \        V4      \        VP                  R. 4      4      8  dI   Rp\        V\        P                  ! V\        VP                  R. 4      4      R 4      ,          4      x  R# R# R#  L5i)r   r   r   N)Zstartr'   z3Additional items are not allowed (%s %s unexpected))r   r   lenr#   r   r   r   
extras_msg)r   ZaIr   r   Z	len_itemsr$   r,   errorr   r   additionalItemsr2   j   s     h00VZZ4h??FJJw+,IX&&$Xj%9KKE (((>>> LCMC

7B(?$@@EF%%hs6::gr3J/K/L&MNN
 	
 AR ?s    A D,AD,"D*#D,5A6D,c              #   sT  "   V P                  VR 4      '       g   R# V P                  VR 4      '       d?   \        \        V4      V4       F#  w  w  rEpV P                  WVWDR7       Rj  xL
  K%  	  R# \        V4       F   w  rEV P                  WQVR7       Rj  xL
  K"  	  R#  L; L5i)r   Nr)   r'   )r   r*   r#   r   r+   r-   r   items_draft6_draft7_draft201909r3   |   s     Xw//(((+Ih,?(G$MU9 ((e )    )H
 %X.KE ((5(AAA /	
 Bs(   2B(3B((B$)0B(B&B(&B(c              #   s   "   V P                  VR 4      '       g   R# VP                  RR4      '       d   W!8*  pRpMW!8  pRpV'       d   V: RV RV: 2p\        V4      x  R# R# 5i)numberNZexclusiveMinimumFzless than or equal toz	less than is z the minimum of r   r   r   )r   Zminimumr   r   failedcmpr   r-   r   minimum_draft3_draft4r9      sq     Xx00zz$e,,$%#LSE)9'Eg&&    2A'A'
A'c              #   s   "   V P                  VR 4      '       g   R# VP                  RR4      '       d   W!8  pRpMW!8  pRpV'       d   V: RV RV: 2p\        V4      x  R# R# 5i)r4   NZexclusiveMaximumFzgreater than or equal tozgreater thanr5   z the maximum of r6   )r   Zmaximumr   r   r7   r8   r   r-   r   maximum_draft3_draft4r;      sq     Xx00zz$e,,$(#LSE)9'Eg&& r:   c              #   s  "   V P                  VR 4      '       g   R# VP                  4        F  w  rEWB9   d&   V P                  W$,          VVVR7       Rj  xL
  K0  VP                  RR4      '       g   KJ  \	        V: R24      pVP                  RVR,          VVR7       VP                  P                  V4       VP                  P                  VR.4       Vx  K  	  R#  L5i)r   Nr)   ZrequiredFz is a required property)r   Zvalidator_valuer   r   )
r   r   r   r   r   Z_setr(   Z
appendleftr   extend)r   
propertiesr   r   r   r%   r1   r-   r   properties_draft3r>      s     Xx00)//1 (("$	 )    ]]:u--#xl2I$JKEJJ$ )* 5!	   JJ!!(+$$h
%;<K%  2s   AC&C$C&7A.C&c           	   #   s8  "   \         P                  ! V4      p. p\        V4       Fq  w  rVV P                  VR 4      '       d;   \	        V P                  W&VR7      4      pV'       g    R# VP                  V4       KW  V P                  W&4      '       g   Kp   R# 	  . pV F%  p VP                  \        VR,          4      4       K'  	  \        V: RRP                  V4       2VR7      x  R#   \         d    TP                  \        T4      4        Kw  i ; i5i)r   r   NZnamez is not of type z, )Zcontext)r   r   r#   r   listr   r<   appendZreprZ	Exceptionr   Zjoin)	r   Ztypesr   r   Z
all_errorsr$   r   ZerrorsZreprs	   &&&&     r   type_draft3rB      s     u%EJ 'T8,,)++H+NOFf%x.. ( E	%LLd6l+, 
 ,&tyy'7&89   	%LLd$	%s0   BDD#!C.*D.%DDDDc              #   s   a a"   S P                  VR 4      '       g   R# \        ;QJ d     VV 3R lV 4       F  '       g   K   RM	  RM! VV 3R lV 4       4      '       g   \        RV: R24      x  R# R# 5i)r   Nc              3   sf   <"   T F&  pSP                  SR 7      P                  V4      x  K(  	  R# 5i)r   N)r   r    )Z.0Zelementcontainsr   s   & r   Z	<genexpr>Z)contains_draft6_draft7.<locals>.<genexpr>   s4      G 	)227;;s   .1TFzNone of z! are valid under the given schema)r   Zanyr   )r   rC   r   r   s   ff&&r   contains_draft6_draft7rD      sl     Xw//3 333    xl"CD
 	
	s   %A7A7A7!A7c              #   s   "   \        V P                  4      pV P                  VVP                  VP                  R 7       Rj  xL
  R#  L5i))resolverN)r    	_resolverr   contentsrE   )r   recursiveRefr   r   resolveds   &&&& r   rH   rH      sG     #I$7$78H  "" !   s   AAA
Ac           	     s   V P                  VR4      '       d   . # . pVP                  R4      pVeg   V P                  P                  V4      pVP	                  \        V P                  VP                  VP                  R7      VVP                  4      4       RV9   da   \        V P                  4      pVP	                  \        V P                  VP                  VP                  R7      VVP                  4      4       RV9   d   RV9   d   \        \        \        V4      4      4      # V P                  VR,          R4      '       d   \        \        \        V4      4      4      # V\        \        \        VR,          4      4      4      ,          pR	V9   d   V P                  VR	,          R
7      P                  V4      '       d=   V\        WVR	,          4      ,          pRV9   d   V\        WVR,          4      ,          pM!RV9   d   V\        WVR,          4      ,          pR F_  pWb9   g   K  \        V4       FE  w  rxV P                  W&,          R
7      P                  V4      '       g   K4  VP                  V4       KG  	  Ka  	  R FN  pWb9   g   K  W&,           F7  p	\!        V P#                  W4      R4      p
V
e   K$  V\        WV	4      ,          pK9  	  KP  	  V# )z
Get all indexes of items that get evaluated under the current schema.

Covers all keywords related to unevaluatedItems: items, prefixItems, if,
then, else, contains, unevaluatedItems, allOf, oneOf, anyOf
booleanr   Nr   rF   $recursiveRefr   r2   r   ifr   thenelse)rC   unevaluatedItemsZallOfZoneOfZanyOf)r   r   rF   lookupr<   %find_evaluated_item_indexes_by_schemar   rG   rE   r    r?   Zranger/   r    r#   r@   nextr   )r   r   r   Zevaluated_indexesr   rI   keywordZkZvr%   errss   &&&        r   rS   rS      s    ++	
**V
C
&&--c2  1  #,,&// !  !!		
 & '	(;(;<  1  #,,&// !  !!		
 &&c(m,--VG_h77c(m,--T%F7O(<"=>>v~6$<099(CC!FVD\"  !%J& ! v!FVF^"  4!(+##6?#;DDQGG%,,Q/ , 4 /#__	I--hBDI<%)N!Y* % - / r
   c              #   s  "   V P                  VR 4      '       g   R# \        WV4      p\        V4       UUu. uF  w  rVWT9  g   K  VNK  	  pppV'       d-   Rp\        V\        P
                  ! V4      ,          4      x  R# R# u uppi 5i)r   Nz4Unevaluated items are not allowed (%s %s unexpected))r   rS   r#   r   r   r0   )	r   rP   r   r   Zevaluated_item_indexesr$   r,   Zunevaluated_itemsr1   rA   r   unevaluatedItems_draft2019rW   @  s     Xw//BV !*( 3 3. 	 3   Fef&7&78I&JJKK 	s   5B
BB?Bc           	      s   V P                  VR 4      '       d   . # . pVP                  R4      pVeg   V P                  P                  V4      pVP	                  \        V P                  VP                  VP                  R7      VVP                  4      4       RV9   da   \        V P                  4      pVP	                  \        V P                  VP                  VP                  R7      VVP                  4      4       R F  pWb9   g   K  W&,          pV P                  VR 4      '       d!   V'       d   W1P                  4       ,          pKK  V P                  VR4      '       g   Ke  V F  pW9   g   K  VP                  V4       K  	  K  	  RV9   dI   V FB  pVR,           F2  p	\        P                  ! W4      '       g   K!  VP                  V4       K4  	  KD  	  RV9   d<   VR,          P                  4        F   w  rW9  d   K  V\        WV
4      ,          pK"  	  R FN  pWb9   g   K  W&,           F7  p
\        V P!                  W4      R4      pVe   K$  V\        WV
4      ,          pK9  	  KP  	  RV9   d   V P                  VR,          R	7      P#                  V4      '       d>   V\        WVR,          4      ,          pR
V9   d   V\        WVR
,          4      ,          pV# RV9   d   V\        WVR,          4      ,          pV# )rJ   r   NrK   rL   r   ZpatternPropertiesZdependentSchemasrM   r   rN   rO   )r=   ZadditionalPropertiesZunevaluatedPropertiesrQ   )r   r   rF   rR   r<   &find_evaluated_property_keys_by_schemar   rG   rE   r    Zkeysr@   reZsearchr   rT   r   r    )r   r   r   evaluated_keysr   rI   rU   Zschema_valuer   Zpatternr%   rV   s   &&&         r   rX   rX   O  s   ++	N
**V
C
&&--c22  #,,&// !  !!		
 & '	(;(;<2  #,,&// !  !!		
 !?L  y99l--/1""<:: ,H+&--h7 !- f$ H!"56699W//"))(3 7 !
 V##)*<#=#C#C#EH'DY N $F /#__	I--hBDI<"&L!Y' N - / v~6$<099(CCDVD\ N "H#   vDVF^ N r
   c              #   s  "   V P                  VR 4      '       g   R# \        WV4      p. pV F>  pWd9  g   K  V P                  W&,          VVVR7       F  pVP                  V4       K  	  K@  	  V'       dp   VRJ d>   Rp\	        V\
        R7      p	\        V\        P                  ! V	4      ,          4      x  R# Rp\        V\        P                  ! V4      ,          4      x  R# R# 5i)r   Nr)   Fz9Unevaluated properties are not allowed (%s %s unexpected))Zkeyz[Unevaluated properties are not valid under the given schema (%s %s unevaluated and invalid))	r   rX   r   r@   ZsortedZstrr   r   r0   )
r   ZuPr   r   rZ   Zunevaluated_keysr   Z_r1   Zextrass
   &&&&      r   unevaluatedProperties_draft2019r[     s     Xx00;VN )&&"$	 '  !''1  ;OE,#6F!%&*;*;F*C"CDDC  "%&*;*;<L*M"MNN s   1C(>C(7A1C()rY   Zreferencing.jsonschemar    Z
jsonschemar   Zjsonschema.exceptionsr   r	   r   r   r"   r&   r.   r2   r3   r9   r;   r>   rB   rD   rH   rS   rW   rX   r[   ) r
   r   <module>r\      ss    	 7  13.<+M
$B' ' 22

K\LRjOr
   