(self, type_data: dict, option_name: str, normalized_option_name: str)
return errors
:param type_data: dict with the option type information
        :param option_name: The option name
        :param normalized_option_name: Normalized option name
        :returns: A list of errors
:param type_data: dict with the option type information
        :param option_name: The option name
        :param normalized_option_name: Normalized option name
        :returns: A list of errors
: param type_data : dict with the option type information : param option_name : The option name : param normalized_option_name : Normalized option name : returns : A list of errors
def add_type_validators(self, type_data: dict, option_name: str, normalized_option_name: str) -> List[str]:
        """
        :param type_data: dict with the option type information
        :param option_name: The option name
        :param normalized_option_name: Normalized option name
        :returns: A list of errors
        """
        validator_data = []
        errors = []
        validators = type_data.pop('validators', [])
        if not isinstance(validators, list):
            errors.append(f'Config spec property `{option_name}.value.validators` must be an array')
        elif validators:
            for i, import_path in enumerate(validators, 1):
                if not isinstance(import_path, str):
                    errors.append(
                        f'Entry #{i} of config spec property `{option_name}.value.validators` must be a string'
                    )
                    break
            else:
                validator_data.append((normalized_option_name, validators))
        self.validator_data += validator_data
        return errors
def add_type_validators ( self , type_data : dict , option_name : str , normalized_option_name : str ) -> List [ str ] : validator_data = [ ] errors = [ ] validators = type_data . pop ( 'validators' , [ ] ) if not isinstance ( validators , list ) : errors . append ( f'Config spec property `{option_name}.value.validators` must be an array' ) elif validators : for i , import_path in enumerate ( validators , 1 ) : if not isinstance ( import_path , str ) : errors . append ( f'Entry #{i} of config spec property `{option_name}.value.validators` must be a string' ) break else : validator_data . append ( ( normalized_option_name , validators ) ) self . validator_data += validator_data return errors