mirror of
https://github.com/tristanpenman/valijson.git
synced 2025-03-04 07:27:24 +01:00
Ensure ref values are strings
This commit is contained in:
parent
635f36f095
commit
7ab96207c5
@ -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.");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user