Fix error when checking data not of type String

This commit is contained in:
JeremyStar™ 2024-05-11 02:59:16 +02:00
parent 4d7717b3bf
commit c375cd96d5
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D

View file

@ -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: