관리-도구
편집 파일: schema.cpython-311.opt-1.pyc
� IMg� � � � d dl mZmZ d dlmZ d dlmZmZmZm Z m Z mZmZm Z mZmZ d dlmZ G d� de� � Zd� ZdS ) � )�BaseErrorHandler�BasicErrorHandler)�UserType) �add_eula�add_license�add_license_user�add_version�collect_warnings�counts�default_to_items� max_count�preserve_remote_addr�send_command_invoke_message)�prepare_schemac �L � e Zd Zej � � � Zd� Zd� ZdS )�ErrorHandlerc # �* K � |j r'|j D ]}| � |� � E d {V �� �d S d� |j |j | j � |j d� � j |j |j |j |j d��� � V � d S )Nz#field: '{}', value: '{}', error: {}� )� constraint�field�value) �child_errors�collect_errors�formatr r �messages�get�code�infor )�self�error�errs �V/opt/imunify360/venv/lib/python3.11/site-packages/defence360agent/simple_rpc/schema.pyr zErrorHandler.collect_errors s� � � � ��� ��)� 4� 4���.�.�s�3�3�3�3�3�3�3�3�3�3� 4� 4� 8�>�>�����8�� �!�!�%�*�b�1�1�8��Z�$�/��+��+� � � � � � � � � � � c �n � g }|D ]/}| � |� � D ]}|� |� � ��0|S )N)r �append)r �errors�string_representationr r s r"