Ensure ref values are strings

This commit is contained in:
Tristan Penman 2021-01-17 17:42:55 +11:00
parent 635f36f095
commit 7ab96207c5

View File

@ -242,7 +242,7 @@ private:
const typename AdapterType::Object::const_iterator itr = o.find("$ref");
if (itr == o.end()) {
return false;
} else if (!itr->second.asString(result)) {
} else if (!itr->second.getString(result)) {
throwRuntimeError("$ref property expected to contain string value.");
}