check for $defs first, since it is more future-oriented
This commit is contained in:
parent
1bcfdf8253
commit
8edd521853
@ -1396,8 +1396,8 @@ std::shared_ptr<schema> schema::make(json &schema,
|
||||
}
|
||||
return false;
|
||||
};
|
||||
if (!findDefinitions("definitions")) {
|
||||
findDefinitions("$defs");
|
||||
if (!findDefinitions("$defs")) {
|
||||
findDefinitions("definitions");
|
||||
}
|
||||
|
||||
attr = schema.find("$ref");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user