File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/setuptools/config/_validate_pyproject/__pycache__/fastjsonschema_exceptions.cpython-310.pyc
Back
o ;jL � @ sF d dl Z e �d�ZG dd� de�ZG dd� de�ZG dd� de�ZdS ) � Nz [\.\[\]]+c @ � e Zd ZdZdS )�JsonSchemaExceptionz7 Base exception of ``fastjsonschema`` library. N��__name__� __module__�__qualname__�__doc__� r r �s/opt/saltstack/salt/lib/python3.10/site-packages/setuptools/config/_validate_pyproject/fastjsonschema_exceptions.pyr � r c s: e Zd ZdZd � fdd� Zedd� �Zedd� �Z� ZS ) �JsonSchemaValueExceptiona� Exception raised by validation function. Available properties: * ``message`` containing human-readable information what is wrong (e.g. ``data.property[index] must be smaller than or equal to 42``), * invalid ``value`` (e.g. ``60``), * ``name`` of a path in the data structure (e.g. ``data.property[index]``), * ``path`` as an array in the data structure (e.g. ``['data', 'property', 'index']``), * the whole ``definition`` which the ``value`` has to fulfil (e.g. ``{'type': 'number', 'maximum': 42}``), * ``rule`` which the ``value`` is breaking (e.g. ``maximum``) * and ``rule_definition`` (e.g. ``42``). .. versionchanged:: 2.14.0 Added all extra properties. Nc s. t � �|� || _|| _|| _|| _|| _d S �N)�super�__init__�message�value�name� definition�rule)�selfr r r r r �� __class__r r r s z!JsonSchemaValueException.__init__c C s dd� t �| j�D �S )Nc S s g | ]}|d kr|�qS )� r )�.0�itemr r r � <listcomp>'