Viewing File: /opt/imunify360/venv/lib/python3.11/site-packages/jsonschema/__pycache__/cli.cpython-311.pyc
]j d Z ddlmZ ddlZddlZddlZddlmZ ddlm Z ddl
mZ d Zd Z
ej d
Ze ddd
de
d e dddd e dded e dde e dde
d Zej d!d fd"Zej ej fd#ZdS )$z"
The ``jsonschema`` command line.
)absolute_importN)__version__namedAny)
validator_forc 2 d| vrd| z } t | S )N.zjsonschema.r )names n/builddir/build/BUILD/imunify360-venv-2.6.3/opt/imunify360/venv/lib/python3.11/site-packages/jsonschema/cli.py_namedAnyWithDefaultr s!
$t#D>> c | t | 5 }t j | cd d d S # 1 swxY w Y d S )N)openjsonload)pathfiles r
_json_filer sz
d ty s 155zJSON Schema Validation CLI)descriptionz-iz
--instanceappend instancesz\a path to a JSON instance (i.e. filename.json) to validate (may be specified multiple times))actiondesttypehelpz-Fz--error-formatz"{error.instance}: {error.message}
zthe 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--validatorzthe 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 --versionversion)r r schemaz3the JSON Schema to validate with (i.e. schema.json))r r c t t | pdg }|d t |d |d<