diff --git a/src/classes/validationschema.gd b/src/classes/validationschema.gd index c3c30a6..30efe96 100644 --- a/src/classes/validationschema.gd +++ b/src/classes/validationschema.gd @@ -71,7 +71,7 @@ func _evaluate_recursive(random: String, parent_dict: Dictionary, path: String = var failed: Array[String] = [] for key in parent_dict: # Check if key exists in data - if data.get(key, random) == random: + if str(data.get(key, random)) == random: # Does not exist, append error failed.append(core.stringify_variables("Key %key% is present in schema but missing in data", { "key": path + "/" + key })) else: