+
     hg!  c                   sF   R t ^ RIHt ^ RIHt ^ RIHt ^ RIt^ RIt^ RIt^ RI	t	^ RI
t
 ^ RIHt ^ RIHtHt ^ RIHt ^ RIHtHt ]
P.                  ! R	]^R
7        ! R R]4      t] ! R R4      4       t] ! R R4      4       t] ! R R4      4       tR t]P>                  ! RR7      t ] PC                  RRRRRR7       ] PC                  RRRR7       ] PC                  R R!R"R#.R"R$R%7       ] PC                  R&R']R(R)7       ] PC                  R*R+R7       ] PC                  R,R-]PD                  ! R.4      R/7       ] PC                  R0R1R7       R2 t#R3 t$]PJ                  R4,          3R5 lt&]PN                  ]PP                  ]PR                  3R6 lt*R#   ] d    ^ RIHt  ELoi ; i)7z"
The ``jsonschema`` command line.
)metadata)JSONDecodeError)dedentNresolve_name)definefield)SchemaError)_RefResolvervalidator_forzThe jsonschema CLI is deprecated and will be removed in a future version. Please use check-jsonschema instead, which can be installed from https://pypi.org/project/check-jsonschema/)Z
stacklevelc                   s    ] tR t^#tRtR# )_CannotLoadFile N)__name__
__module____qualname____firstlineno____static_attributes__r       3/usr/lib/python3.14/site-packages/jsonschema/cli.pyr
   r
   #   s    r   r
   c                   sx   a  ] tR t^'t o ]! 4       t]! 4       t]! 4       t]R 4       t	R t
R tR tR tR tRtV tR# )	
_Outputterc                s    VR ,          R8X  d   \        VR,          4      pMVR ,          R8X  d   \        4       pV ! XW#R7      # )outputplainerror_formatpretty)	formatterstdoutstderr)_PlainFormatter_PrettyFormatter)Zcls	argumentsr   r   r   s   &&&& r   from_argumentsZ_Outputter.from_arguments.   s@    X')'	.(ABIx H,(*IYvEEr   c                s    \        V4      pT;_uu_ 4         \        P                  ! T4      uuRRR4       #   \         d7   pT P                  T\        P                  ! 4       R 7       \        4       ThRp?ii ; i  \         d7   pT P                  T\        P                  ! 4       R 7       \        4       ThRp?ii ; i  + '       g   i     R# ; i)pathexc_infoN)
ZopenFileNotFoundErrorfilenotfound_errorsysr!   r
   jsonloadr   parsing_error)selfr    Zfileerrors   &&  r   r&   Z_Outputter.load6   s    	/:D
 T3yy T	 ! 	/###G!#.	/ # 3""s||~"F%'U23 TTs=   9 CA=A:1A55A:=B>1B99B>>CC	c                p    V P                   P                  V P                  P                  ! R/ VB 4       R # Nr   )_stderrwrite
_formatterr#   r(   Zkwargs   &,r   r#   Z_Outputter.filenotfound_errorD   &    4??==GGHr   c                r*   r+   )r,   r-   r.   r'   r/   r0   r   r'   Z_Outputter.parsing_errorG   s&    4??88B6BCr   c                r*   r+   )r,   r-   r.   validation_errorr/   r0   r   r2   Z_Outputter.validation_errorJ   s&    4??;;EfEFr   c                r*   r+   )_stdoutr-   r.   validation_successr/   r0   r   r4   Z_Outputter.validation_successM   r1   r   r   N)r   r   r   r   r   r.   r3   r,   Zclassmethodr   r&   r#   r'   r2   r4   r   __classdictcell__Z__classdict__   @r   r   r   '   sS      JgGgGF F3IDGI Ir   r   c                   sL   a  ] tR t^Qt o ]! R4      tRtR tR tR t	R t
RtV tR# )	r   z`        ===[{type}]===({path})===

        {body}
        -----------------------------
        z===[SUCCESS]===({path})===
c                sF    V P                   P                  VR V: R2R7      # )r"   z does not exist.r    typeZbody)
_ERROR_MSGformatr(   r    r!      &&&r   r#   Z#_PrettyFormatter.filenotfound_error^   s/    %%$8+, & 
 	
r   c                s    Vw  r4pR P                  \        P                  ! W4V4      4      pV P                  P	                  VVP
                  VR7      # ) r8   )Zjoin	tracebackZformat_exceptionr:   r;   r   )r(   r    r!   Zexc_typeZ	exc_valueZexc_tracebackZ	exc_liness   &&&    r   r'   Z_PrettyFormatter.parsing_errore   sW    -5*]GG&&xMJ
	 %%"" & 
 	
r   c                sf    V P                   P                  VVP                  P                  VR 7      # )r8   )r:   r;   Z	__class__r   r(   instance_pathr)   r=   r   r2   Z!_PrettyFormatter.validation_errorp   s1    %%)) & 
 	
r   c                s:    V P                   P                  VR 7      # ))r    )_SUCCESS_MSGr;   r(   rA      &&r   r4   Z#_PrettyFormatter.validation_successw   s      '']';;r   r   N)r   r   r   r   r   r:   rB   r#   r'   r2   r4   r   r5   r6   r7   r   r   r   Q   s6      	J 2L
	

< <r   r   c                   sF   a  ] tR t^{t o ]! 4       tR tR tR tR t	Rt
V tR# )r   c                s    V: R 2# )z does not exist.
r   r<   r=   r   r#   Z"_PlainFormatter.filenotfound_error   s    +,,r   c                sX    R P                  VR8X  d   RM
\        V4      V^,          4      # )zFailed to parse {}: {}
<stdin>)r;   Zreprr<   r=   r   r'   Z_PlainFormatter.parsing_error   s,    )00*IT
QK
 	
r   c                s:    V P                   P                  WR 7      # ))Z	file_namer)   )_error_formatr;   r@   r=   r   r2   Z _PlainFormatter.validation_error   s    !!((=(NNr   c                s    R # )r>   r   rC   rD   r   r4   Z"_PlainFormatter.validation_success   s    r   r   N)r   r   r   r   r   rF   r#   r'   r2   r4   r   r5   r6   r7   r   r   r   {   s(      GM-
O r   r   c                 s8    R V 9  d
   RV ,           p \        V 4      # )Z.zjsonschema.r   )Zname   &r   _resolve_name_with_defaultrH      s    
$t#r   zJSON Schema Validation CLI)Zdescriptionz-iz
--instanceZappend	instancesz
        a path to a JSON instance (i.e. filename.json) to validate (may
        be specified multiple times). If no instances are provided via this
        option, one will be expected on standard input.
    )actionZdesthelpz-Fz--error-formata  
        the format to use for each validation error message, specified
        in a form suitable for str.format. This string will be passed
        one formatted object named 'error' for each ValidationError.
        Only provide this option when using --output=plain, which is the
        default. If this argument is unprovided and --output=plain is
        used, a simple default representation will be used.
    )rK   z-oz--outputr   r   z
        an output format to use. 'plain' (default) will produce minimal
        text with one line for each error, while 'pretty' will produce
        more detailed human-readable output on multiple lines.
    )ZchoicesZdefaultrK   z-Vz--validatorz
        the fully qualified object name of a validator to use, or, for
        validators that are registered with jsonschema, simply the name
        of the class.
    )r9   rK   z
--base-uriz
        a base URI to assign to the provided schema, even if it does not
        declare one (via e.g. $id). This option can be used if you wish to
        resolve relative references to a particular URI (or local path)
    z	--versionversionZ
jsonschema)rJ   rL   schemaz=the path to a JSON Schema to validate with (i.e. schema.json)c                 s    \        \        P                  T ;'       g    R .R7      4      pVR,          R8w  d%   VR,          '       d   \        P                  R4      hVR,          R8X  d   VR,          f   RVR&   V# )z--helpargsr   r   r   z3--error-format can only be used with --output plainz"{error.instance}: {error.message}
)Zvarsparser
parse_argsr)   )rO   r   s   & r   rQ   rQ      sx    V&&D,>,>XJ&?@Ig%)N*C*CllA
 	
 g%)N*C*K$I	.!r   c                 s    R pVP                  V4       F  pRpVP                  WR7       K  	  V'       g   VP                  V R7       V# )FTrA   r)   )rA   )Ziter_errorsr2   r4   )rA   instance	validator	outputterZinvalidr)   s   &&&&  r   _validate_instancerV      sM    G&&x0"""L 1 $$=$ANr   :i   NNc                 sZ    \         P                  ! \        \        V R 7      R7      4       R# )rN   )r   N)r$   ZexitrunrQ   rN   rG   r   mainrX      s    HHS:4012r   c           	      sv  aa \         P                  V VVR 7      o SP                  V R,          4      pT R,          pTf   \	        T4      p TP                  T4       T R,          '       d   SP                  T R,          rM
TT3R lpR.pT R,          e   \        T R,          TR	7      MRp	T! YIR
7      p
^ pT F"  p T! T4      pT\        TTT
SR7      ,          pK$  	  T#   \         d     ^# i ; i  \         d&   pSP                  T R,          TR7        Rp?^# Rp?ii ; i  \         d    ^p K}  i ; i))r   r   r   rM   rT   NrR   rI   c                 s   <  \         P                  ! S4      #   \         d7   pSP                  R \        P
                  ! 4       R7       \        4       ThRp?ii ; i)rE   r   N)r%   r&   r   r'   r$   r!   r
   )Z_r)   rU   stdins   & r   r&   Zrun.<locals>.load
  sR    3yy''" 3''"S\\^ (  &'U2	3s    A1AArE   base_uri)rZ   Zreferrer)resolver)rA   rS   rT   rU   )
r   r   r&   r
   r	   Zcheck_schemar   r2   r   rV   )r   r   r   rY   rM   Z	Validatorr)   r&   rI   r[   rT   Z	exit_codeZeachrS   rU   s   &&&f          @r   rW   rW      sn   )) * I	( 34 +&I!&)	v& #..)K*@i	3 K	
 
:		* :& 15 
 &4II
	DzH +"!##	 I  c    ""#H- 	# 	
 <  	I	s;   C" C4 >D'"C10C14D$?DD$'D87D8)+Z__doc__Z	importlibr    r%   r   Ztextwrapr   Zargparser$   r?   ZwarningsZpkgutilr   ZImportErrorZpkgutil_resolve_nameZattrsr   r   Zjsonschema.exceptionsr   Zjsonschema.validatorsr   r	   ZwarnZDeprecationWarningZ	Exceptionr
   r   r   r   rH   ZArgumentParserrP   Zadd_argumentrL   rQ   rV   ZargvrX   r   r   rY   rW   r   r   r   <module>r\      s         
  2$   - = 	: 	i 	 &I &I &IR &< &< &<R   ( 
	 	 ,
   ,	
	  	   

  
   *h
	  	   -	#
     
     \*  
   	H   hhrl 3 **SZZsyy :}  2112s   F F F 