관리-도구
편집 파일: _validators.cpython-37.opt-1.pyc
B �pSe�- � @ sL d dl Z d dlmZmZmZmZmZmZmZ d dl m Z mZ d dlm Z dd� Zdd� Zd d � Zdd� Zd d� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd � Zd!d"� Zd#d$� Zd%d&� Zd'd(� Zd)d*� Z d+d,� Z!d-d.� Z"d/d0� Z#d1d2� Z$d3d4� Z%d5d6� Z&d7d8� Z'd9d:� Z(d;d<� Z)d=d>� Z*d?d@� Z+dAdB� Z,dCdD� Z-dS )E� N)�ensure_list�equal� extras_msg�find_additional_properties� types_msg�unbool�uniq)�FormatError�ValidationError)� iteritemsc c sn | � |d�sd S xXt|�D ]L\}}xBt|�D ]6\}}t�||�r,x | j||||d�D ] }|V qTW q,W qW d S )N�object)�path�schema_path)�is_typer �re�search�descend) � validator�patternProperties�instance�schema�pattern� subschema�k�v�error� r �G/opt/alt/python37/lib/python3.7/site-packages/jsonschema/_validators.pyr s r c c s@ | � |d�sd S x*|D ]"}x| j||d�D ] }|V q*W qW d S )Nr )r r )r r )r � propertyNamesr r �propertyr r r r r s r c c s� | � |d�sd S tt||��}| � |d�r^x�|D ](}x"| j|| ||d�D ] }|V qJW q0W n~|s�|r�d|kr�t|d �}t|�dkr�d}nd}dd�ttt|���|d�tt|��f }t |�V nd }t |t |� �V d S ) Nr )r r � ZdoesZdoz&%s %s not match any of the regexes: %sz, z8Additional properties are not allowed (%s %s unexpected))r �setr r �sorted�len�join�map�reprr r ) r ZaPr r ZextrasZextrar ZpatternsZverbr r r �additionalProperties) s( r'