Fix error when checking data not of type String
This commit is contained in:
parent
4d7717b3bf
commit
c375cd96d5
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ func _evaluate_recursive(random: String, parent_dict: Dictionary, path: String =
|
||||||
var failed: Array[String] = []
|
var failed: Array[String] = []
|
||||||
for key in parent_dict:
|
for key in parent_dict:
|
||||||
# Check if key exists in data
|
# Check if key exists in data
|
||||||
if data.get(key, random) == random:
|
if str(data.get(key, random)) == random:
|
||||||
# Does not exist, append error
|
# Does not exist, append error
|
||||||
failed.append(core.stringify_variables("Key %key% is present in schema but missing in data", { "key": path + "/" + key }))
|
failed.append(core.stringify_variables("Key %key% is present in schema but missing in data", { "key": path + "/" + key }))
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue