original_docstring: This method checks only valid keywords and value types are used
docstring: This method checks only valid keywords and value types are used
docstring_tokens: This method checks only valid keywords and value types are used
code: def validate_values(yaml, keys, mandatory=()):
      """This method checks only valid keywords and value types are used"""
      unwanted = [k for k in yaml.keys() if k not in keys]
      if unwanted:
          position = yaml.lc.data[unwanted[0]]
          msg = "Invalid keys: {}".format(unwanted)
          raise ValidationError.from_yaml_pos(position, msg)
      if mandatory:
          check_no_missing_keys(yaml, mandatory)
code_tokens: def validate_values ( yaml , keys , mandatory = ( ) ) : unwanted = [ k for k in yaml . keys ( ) if k not in keys ] if unwanted : position = yaml . lc . data [ unwanted [ 0 ] ] msg = "Invalid keys: {}" . format ( unwanted ) raise ValidationError . from_yaml_pos ( position , msg ) if mandatory : check_no_missing_keys ( yaml , mandatory )
short_docstring: This method checks only valid keywords and value types are used
short_docstring_tokens: This method checks only valid keywords and value types are used
comment: """This method checks only valid keywords and value types are used"""