def validate(self):
        """
        validate whether value in config file is correct.
        """

        spec = self._create_specs()

        # support in future
        functions = {}

        validator = validate.Validator(functions=functions)

        self.config.configspec = spec
        result = self.config.validate(validator, preserve_errors=True)

        if self._parse_result(result):
            return True
validate whether value in config file is correct.