Server IP : 192.158.238.246 / Your IP : 18.227.111.102 Web Server : LiteSpeed System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64 User : jenniferflocom ( 1321) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /usr/lib/python3.6/site-packages/jsonschema/__pycache__/ |
Upload File : |
3 �Xf � @ s� d dl mZ d dlZd dlZd dlZd dlmZ d dlmZ dd� Z dd� Z ejd d �Zej ddd de dd� ej ddddd� ej dde dd� ej dde d� dd� Zejdd� fd d!�Zejejfd"d#�ZdS )$� )�absolute_importN)�namedAny)� validator_forc C s d| krd| } t | �S )N�.zjsonschema.)r )�name� r �/usr/lib/python3.6/cli.py�_namedAnyWithDefault s r c C s t | ��}tj|�S Q R X d S )N)�open�json�load)�path�filer r r � _json_file s r zJSON 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)�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 �schemaz7the JSON Schema to validate with (i.e. filename.schema))r r c C s6 t tj| pdgd��}|d d kr2t|d �|d<