@classmethod
def parse(cls, v) ->'EnumFieldDefinition':
    """Parse schema for enum

        Args:
            v (typing.Any): schema item

        Returns:
            EnumFieldDefinition: Parsing result
        """
    if isinstance(v, str):
        return cls(value=v, description=None)
    elif isinstance(v, tuple) and len(v) == 2:
        return cls(value=v[0], description=v[1])
    raise ValueError(f'Enum field should be a str or 2-value tuple, got {v}')
