| Server IP : 138.197.176.125 / Your IP : 216.73.217.54 Web Server : Apache/2.4.41 (Ubuntu) System : Linux SuiteCRM-8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.3.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/lib/python3/dist-packages/jsonschema/__pycache__/ |
Upload File : |
U
>��] � @ s� d Z ddlmZ ddlZddlZddlZddlmZ ddlm Z ddl
mZ dd� Zd d
� Z
ejdd�Zejd
ddde
dd� ejddddd� ejddedd� ejdded� ejdd e
d!� d"d#� Zejd$d� fd%d&�Zejejfd'd(�ZdS ))z"
The ``jsonschema`` command line.
� )�absolute_importN)�__version__��namedAny)�
validator_forc C s d| krd| } t | �S )N�.zjsonschema.r )�name� r �0/usr/lib/python3/dist-packages/jsonschema/cli.py�_namedAnyWithDefault s r c
C s* t | ��}t�|�W 5 Q R � S Q R X d S )N)�open�json�load)�path�filer r r
�
_json_file s
r zJSON Schema Validation CLI)Zdescriptionz-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)�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.)r r z --version�version)r r �schemaz3the JSON Schema to validate with (i.e. schema.json))r r c C s6 t tj| pdgd��}|d d kr2t|d �|d<