관리-도구
편집 파일: fastjsonschema_exceptions.cpython-311.pyc
� ,�ReL � � � d dl Z e j d� � Z G d� de� � Z G d� de� � Z G d� de� � ZdS ) � Nz [\.\[\]]+c � � e Zd ZdZdS )�JsonSchemaExceptionz7 Base exception of ``fastjsonschema`` library. N��__name__� __module__�__qualname__�__doc__� � ��/builddir/build/BUILDROOT/alt-python311-setuptools-65.6.3-2.el8.x86_64/opt/alt/python311/lib/python3.11/site-packages/setuptools/config/_validate_pyproject/fastjsonschema_exceptions.pyr r � � � � � � �� � � r r c �P � � e Zd ZdZd� fd� Zed� � � Zed� � � Z� xZS )�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 � �� t � � � |� � || _ || _ || _ || _ || _ d S �N)�super�__init__�message�value�name� definition�rule)�selfr r r r r � __class__s �r r z!JsonSchemaValueException.__init__ sB �� � ������!�!�!������ ��� �$����� � � r c �T � d� t � | j � � D � � S )Nc � � g | ] }|d k �|��S )� r )�.0�items r � <listcomp>z1JsonSchemaValueException.path.<locals>.<listcomp>'