From c375cd96d51d4a996c133cb4f73402851cd16939 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Sat, 11 May 2024 02:59:16 +0200 Subject: [PATCH] Fix error when checking data not of type String --- src/classes/validationschema.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: