Uname: Linux dedi-15171674.espacofacial.com.br 5.14.0-687.36.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Aug 7 05:40:49 EDT 2026 x86_64
Software: Apache
PHP version: 8.2.33 [ PHP INFO ] PHP os: Linux
Server Ip: 104.21.5.151
Your Ip: 216.73.217.13
User: espa7358 (1004) | Group: espa7358 (1003)
Safe Mode: OFF
Disable Function:
NONE

name : cli.cpython-39.pyc
a

E�s]	�@s�dZddlmZddlZddlZddlZddlmZddlm	Z	ddl
mZdd�Zd	d
�Z
ejdd�Zejd
ddde
dd�ejddddd�ejddedd�ejdded�ejdd e
d!�d"d#�Zejd$d�fd%d&�Zejejfd'd(�ZdS))z"
The ``jsonschema`` command line.
�)�absolute_importN)�__version__��namedAny)�
validator_forcCsd|vrd|}t|�S)N�.zjsonschema.r)�name�r	�2/usr/lib/python3.9/site-packages/jsonschema/cli.py�_namedAnyWithDefaultsrcCs6t|��}t�|�Wd�S1s(0YdS)N)�open�json�load)�path�filer	r	r
�
_json_files
rzJSON 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))�action�dest�type�helpz-Fz--error-formatz"{error.instance}: {error.message}
z�the format to use for each error output message, specified in a form suitable for passing to str.format, which will be called with 'error' for each error)�defaultrz-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.)rrz	--version�version)rr�schemaz3the JSON Schema to validate with (i.e. schema.json))rrcCs6ttj|pdgd��}|ddur2t|d�|d<|S)Nz--help��args�	validatorr)�vars�parser�
parse_argsr)r�	argumentsr	r	r
r!Dsr!�cCst�tt|d�d��dS)Nr)r")�sys�exit�runr!rr	r	r
�mainKsr'cCsh|d}|d|dd�}|�|d�d}|dp6dD]*}|�|�D]}|�|j|d��d	}qFq8|S)
N�error_formatrr)rFrr	)�errorT)Zcheck_schemaZiter_errors�write�format)r"�stdout�stderrr(rZerrored�instancer)r	r	r
r&Osr&)�__doc__Z
__future__r�argparser
r$Z
jsonschemarZjsonschema._reflectrZjsonschema.validatorsrrr�ArgumentParserr �add_argumentr!�argvr'r,r-r&r	r	r	r
�<module>sT��
�	�	��
© 2026 UnknownSec