o
    QDia	                     @  s   d dl mZ d dlZddlmZ ejdddG dd	 d	eZG d
d deZG dd deZG dd deZ	G dd deZ
G dd deZdS )    )annotationsN   )HeaderErrorTF)kw_onlyreprc                   @  sd   e Zd ZU dZdZdZdZdZg dZde	d< 	 de	d< 	 de	d	< 	 d
ddiddiddidiZ
dS )
LabelErrorzsLabel error representation.

    A base class for all the errors related to the labels of the columns/fields.

    zlabel-errorzLabel Error)z#tablez#headerz#labelstrlabel
field_nameintfield_number
propertiestypestringinteger)r	   	fieldNamefieldNumberN)__name__
__module____qualname____doc__r   titledescriptiontemplatetags__annotations__metadata_profile_patch r   r   R/var/www/Datamplify/venv/lib/python3.10/site-packages/frictionless/errors/label.pyr      s&   
 r   c                   @     e Zd ZdZdZdZdZdS )ExtraLabelErrorzextra-labelzExtra LabelzXThe header of the data source contains label that does not exist in the provided schema.zGThere is an extra label "{label}" in header at position "{fieldNumber}"Nr   r   r   r   r   r   r   r   r   r   r   r    0   
    r    c                   @  r   )MissingLabelErrorzmissing-labelzMissing LabelzQBased on the schema there should be a label that is missing in the data's header.zXThere is a missing label in the header's field "{fieldName}" at position "{fieldNumber}"Nr!   r   r   r   r   r#   7   r"   r#   c                   @  r   )BlankLabelErrorzblank-labelzBlank LabelzXA label in the header row is missing a value. Label should be provided and not be blank.zALabel in the header in field at position "{fieldNumber}" is blankNr!   r   r   r   r   r$   >   r"   r$   c                   @  r   )DuplicateLabelErrorzduplicate-labelzDuplicate LabelzQTwo columns in the header row have the same value. Column names should be unique.zZLabel "{label}" in the header at position "{fieldNumber}" is duplicated to a label: {note}Nr!   r   r   r   r   r%   E   r"   r%   c                   @  r   )IncorrectLabelErrorzincorrect-labelzIncorrect LabelzROne of the data source header does not match the field name defined in the schema.zlLabel "{label}" in field {fieldName} at position "{fieldNumber}" does not match the field name in the schemaNr!   r   r   r   r   r&   L   r"   r&   )
__future__r   attrsheaderr   definer   r    r#   r$   r%   r&   r   r   r   r   <module>   s    '