Skip to content

Commit 20b5b0b

Browse files
committed
permissive key validation #243
1 parent b02ef66 commit 20b5b0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/geoflow_validator.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ geoflow_validator_cell <- R6Class("geoflow_validator_cell",
160160
if(private$key_required) report <- rbind(report, data.frame(type = "ERROR", message = sprintf("Key is omitted, with no default key, please check the documentation")))
161161
}
162162
}else{
163-
if(!kvp$key %in% private$valid_keys){
163+
if(!tolower(kvp$key) %in% tolower(private$valid_keys)){
164164
#warning --> indicate key will be ignored
165165
if(private$error_if_invalid_key){
166166
report <- rbind(report, data.frame(type = "ERROR", message = sprintf("Key '%s' is invalid, allowed key values are [%s]", kvp$key, paste0(private$valid_keys, collapse = ","))))

0 commit comments

Comments
 (0)