+
    P4iï   ã                   óF  € 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_forzµThe 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/)Ú
stacklevelc                   ó   € ] tR t^#tRtR# )Ú_CannotLoadFile© N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__static_attributes__r   ó    Ú0/usr/lib/python3/dist-packages/jsonschema/cli.pyr   r   #   s   † Ûr   r   c                   óx   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                óˆ   € 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)ÚclsÚ	argumentsr   r    r   s   &&&& r   Úfrom_argumentsÚ_Outputter.from_arguments.   s@   € à�XÕ 'Ô)Ü'¨	°.Õ(AÓB‰IØ�xÕ  HÔ,Ü(Ó*ˆIÙ˜Y¨vÔEÐEr   c                ó–  €  \        V4      pT;_uu_ 4         \        P                  ! T4      uuRRR4       #   \         d2    T P                  T\        P                  ! 4       R 7       \        4       hi ; i  \         d2    T P                  T\        P                  ! 4       R 7       \        4       hi ; i  + '       g   i     R# ; i)©ÚpathÚexc_infoN)
ÚopenÚFileNotFoundErrorÚfilenotfound_errorÚsysr*   r   ÚjsonÚloadr   Úparsing_error)Úselfr)   Úfiles   && r   r0   Ú_Outputter.load6   s�   € ð	$Ü˜“:ˆD÷
 ŠTð(Ü—y’y “÷ ŠTøô	 !ô 	$Ø×#Ñ#¨¼¿º»Ð#ÔGÜ!Ó#Ð#ð	$ûô #ô (Ø×"Ñ"¨´s·|²|³~Ð"ÔFÜ%Ó'Ð'ð(ú÷ �TˆTús%   ‚9 —B7™A8¹<A5Á8<B4Â4B7Â7C	c                óp   € V P                   P                  V P                  P                  ! R/ VB 4       R # ©Nr   )Ú_stderrÚwriteÚ
_formatterr-   ©r2   Úkwargss   &,r   r-   Ú_Outputter.filenotfound_errorD   ó&   € Ø�‰×Ñ˜4Ÿ?™?×=Ò=ÑGÀÑGÖHr   c                óp   € V P                   P                  V P                  P                  ! R/ VB 4       R # r6   )r7   r8   r9   r1   r:   s   &,r   r1   Ú_Outputter.parsing_errorG   s&   € Ø�‰×Ñ˜4Ÿ?™?×8Ò8ÑB¸6ÑBÖCr   c                óp   € V P                   P                  V P                  P                  ! R/ VB 4       R # r6   )r7   r8   r9   Úvalidation_errorr:   s   &,r   rA   Ú_Outputter.validation_errorJ   s&   € Ø�‰×Ñ˜4Ÿ?™?×;Ò;ÑE¸fÑEÖFr   c                óp   € V P                   P                  V P                  P                  ! R/ VB 4       R # r6   )Ú_stdoutr8   r9   Úvalidation_successr:   s   &,r   rE   Ú_Outputter.validation_successM   r=   r   r   N)r   r   r   r   r   r9   rD   r7   Úclassmethodr%   r0   r-   r1   rA   rE   r   Ú__classdictcell__©Ú__classdict__s   @r   r   r   '   sS   ø‡ € ñ “€JÙ‹g€GÙ‹g€GàñFó ðFò(òIòDòG÷Ið Ir   r   c                   óL   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                ó\   € V P                   P                  VR RP                  V4      R7      # )r,   z{!r} does not exist.©r)   ÚtypeÚbody)Ú
_ERROR_MSGÚformat©r2   r)   r*   s   &&&r   r-   Ú#_PrettyFormatter.filenotfound_error^   s2   € Ø�‰×%Ñ%ØØ$Ø'×.Ñ.¨tÓ4ð &ó 
ð 	
r   c                ó¨   € Vw  r4pR P                  \        P                  ! W4V4      4      pV P                  P	                  VVP
                  VR7      # )Ú rM   )ÚjoinÚ	tracebackÚformat_exceptionrP   rQ   r   )r2   r)   r*   Úexc_typeÚ	exc_valueÚexc_tracebackÚ	exc_liness   &&&    r   r1   Ú_PrettyFormatter.parsing_errore   sW   € Ø-5Ñ*ˆ˜]Ø—G‘GÜ×&Ò& x¸MÓJó
ˆ	ð �‰×%Ñ%ØØ×"Ñ"Øð &ó 
ð 	
r   c                óf   € V P                   P                  VVP                  P                  VR 7      # )rM   )rP   rQ   Ú	__class__r   ©r2   Úinstance_pathÚerrors   &&&r   rA   Ú!_PrettyFormatter.validation_errorp   s1   € Ø�‰×%Ñ%ØØ—‘×)Ñ)Øð &ó 
ð 	
r   c                ó:   € V P                   P                  VR 7      # ))r)   )Ú_SUCCESS_MSGrQ   ©r2   ra   s   &&r   rE   Ú#_PrettyFormatter.validation_successw   s   € Ø× Ñ ×'Ñ'¨]Ð'Ó;Ð;r   r   N)r   r   r   r   r   rP   re   r-   r1   rA   rE   r   rH   rI   s   @r   r"   r"   Q   s6   ø‡ € ñ ð	ó€Jð 2€Lò
ò	
ò
÷<ð <r   r"   c                   óF   a € ] tR t^{t o ]! 4       tR tR tR tR t	Rt
V tR# )r!   c                ó$   € R P                  V4      # )z{!r} does not exist.
)rQ   rR   s   &&&r   r-   Ú"_PlainFormatter.filenotfound_error€   s   € Ø'×.Ñ.¨tÓ4Ð4r   c                óX   € R P                  VR8X  d   RM
\        V4      V^,          4      # )zFailed to parse {}: {}
ú<stdin>)rQ   ÚreprrR   s   &&&r   r1   Ú_PlainFormatter.parsing_errorƒ   s,   € Ø)×0Ñ0Ø Ô*‰I´°T³
Ø�Q�Kó
ð 	
r   c                ó:   € V P                   P                  WR 7      # ))Ú	file_namerb   )Ú_error_formatrQ   r`   s   &&&r   rA   Ú _PlainFormatter.validation_error‰   s   € Ø×!Ñ!×(Ñ(°=Ð(ÓNÐNr   c                ó   € R # )rU   r   rf   s   &&r   rE   Ú"_PlainFormatter.validation_successŒ   s   € Ùr   r   N)r   r   r   r   r   rq   r-   r1   rA   rE   r   rH   rI   s   @r   r!   r!   {   s(   ø‡ € ñ “G€Mò5ò
òO÷ð r   r!   c                 ó8   € R V 9  d
   RV ,           p \        V 4      # )Ú.zjsonschema.r   )Únames   &r   Ú_resolve_name_with_defaultrx   �   s   € Ø
�$„Ø˜tÕ#ˆÜ˜ÓÐr   zJSON Schema Validation CLI)Údescriptionz-iz
--instanceÚ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.
    )ÚactionÚ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.
    )r~   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.
    )ÚchoicesÚdefaultr~   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.
    )rN   r~   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ÚversionÚ
jsonschema)r|   r�   Úschemaz=the path to a JSON Schema to validate with (i.e. schema.json)c                 óú   € \        \        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}
)ÚvarsÚparserÚ
parse_argsrb   )r†   r$   s   & r   r‰   r‰   Ô   sx   € Ü”V×&Ñ&¨D×,>Ð,>°X°JÐ&Ó?Ó@€IØ�Õ˜gÔ%¨)°N×*CÔ*CÜ�l‰lØAó
ð 	
ð �Õ˜gÔ%¨)°NÕ*CÒ*KØ$Iˆ	�.Ñ!ØÐr   c                 ó–   € 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   rb   )ra   )Úiter_errorsrA   rE   )ra   ÚinstanceÚ	validatorÚ	outputterÚinvalidrb   s   &&&&  r   Ú_validate_instancer‘   ß   sM   € Ø€GØ×&Ñ& xÖ0ˆØˆØ×"Ñ"°Ð"ÖLñ 1÷ Ø×$Ñ$°=Ð$ÔAØ€Nr   :é   NNc                 óZ   € \         P                  ! \        \        V R 7      R7      4       R# )r…   )r$   N)r.   ÚexitÚrunr‰   r…   s   &r   Úmainr–   ê   s   € Ü‡H‚HŒSœ:¨4Ô0Ô1Ö2r   c           	      óv  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,          r‡M
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    rƒ   rŽ   Nr‹   r{   c                 ó°   <€  \         P                  ! S4      #   \         d2    SP                  R \        P
                  ! 4       R7       \        4       hi ; i)rl   r(   )r/   r0   r   r1   r.   r*   r   )Ú_r�   Ústdins   &€€r   r0   Úrun.<locals>.load
  sO   ø€ ð(Ü—y’y Ó'Ð'øÜ"ô (Ø×'Ñ'Ø"¬S¯\ª\«^ð (ô ô &Ó'Ð'ð	(ús	   ƒ ™<Arl   Úbase_uri)rœ   Úreferrer)Úresolver)ra   r�   rŽ   r�   )
r   r%   r0   r   r   Úcheck_schemar	   rA   r
   r‘   )r$   r   r    rš   rƒ   Ú	Validatorrb   r0   r{   rž   rŽ   Ú	exit_codeÚeachr�   r�   s   &&&f          @r   r•   r•   î   sn  ù€ Ü×)Ñ)ØØØð *ó €IðØ—‘ 	¨(Õ 3Ó4ˆð ˜+Õ&€IØÒÜ! &Ó)ˆ	ðØ×Ñ˜vÔ&ð �×ÔØ#Ÿ.™.¨)°KÕ*@‰iö	(ð �Kˆ	ð
 
�:Õ	Ò	*ô Ø˜:Õ&Øõð 15ð ñ
 ˜&Ô4€IØ€IÛˆð
	Ù˜D“zˆHð Ô+Ø"Ø!Ø#Ø#ô	õ ŠIñ ð Ðøôc ô Úðûô ô Ø×"Ñ"Ø# HÕ-Øð 	#ô 	
õ ûðûô< ô 	Ø‹Ið	ús;   œC" ÁC4 Â>D'Ã"C1Ã0C1Ã4D$Ã?DÄD$Ä'D8Ä7D8)+Ú__doc__Ú	importlibr   r/   r   Útextwrapr   Úargparser.   rW   ÚwarningsÚpkgutilr   ÚImportErrorÚpkgutil_resolve_nameÚattrsr   r   Újsonschema.exceptionsr	   Újsonschema.validatorsr
   r   ÚwarnÚDeprecationWarningÚ	Exceptionr   r   r"   r!   rx   ÚArgumentParserrˆ   Úadd_argumentr�   r‰   r‘   Úargvr–   r   r    rš   r•   r   r   r   Ú<module>r´      s  ðñõ Ý  Ý Û Û Û 
Û Û ð2Ý$÷  å -ß =à ‡‚ð	:ð Øõô	�iô 	ð ÷&Ið &Ió ð&IðR ÷&<ð &<ó ð&<ðR ÷ð ó ðò(ð 
×	 Ò	 Ø,ô
€ð × Ñ Øˆ,ØØ	ð
ð	 ô 	ð × Ñ ØÐ
ð
ð ô 
ð × Ñ Øˆ*Ø�hÐØð
ð	 ô 	ð × Ñ Øˆ-Ø	#ð
ð ô ð × Ñ Øð
ð ô ð × Ñ ØØØ×Ò˜\Ó*ð ô ð
 × Ñ ØØ	Hð ô òòð �h‰h�r�lô 3ð Ÿ*™*¨S¯Z©Z¸s¿y¹yö :øð} ô 2ß1Ð1ð2ús   ªF ÆF ÆF 