docs: def validate(schema_file, config_file, deprecation):
      '''Validate a configuration file against a confirm schema.'''
  
      result = validator_from_config_file(config_file, schema_file)
      result.validate(error_on_deprecated=deprecation)
  
      for error in result.errors():
          click.secho('Error   : %s' % error, err=True, fg='red')
  
      for warning in result.warnings():
          click.secho('Warning : %s' % warning, err=True, fg='yellow')