src/plugin/vault/pachyderm/helpers.go
func validateFields(req *logical.Request, data *framework.FieldData) error {
	var unknownFields []string
	for k := range req.Data {
		if _, ok := data.Schema[k]; !ok {
			unknownFields = append(unknownFields, k)
		}
	}

	if len(unknownFields) > 0 {
		return fmt.Errorf("unknown fields: %q", unknownFields)
	}

	return nil
}
func validateFields(req *logical.Request, data *framework.FieldData) error {
	var unknownFields []string
	for k := range req.Data {
		if _, ok := data.Schema[k]; !ok {
			unknownFields = append(unknownFields, k)
		}
	}

	if len(unknownFields) > 0 {
		return fmt.Errorf("unknown fields: %q", unknownFields)
	}

	return nil
}
// validateFields verifies that no bad arguments were given to the request.