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;
|
return false;
|
||||||
};
|
};
|
||||||
if (!findDefinitions("definitions")) {
|
if (!findDefinitions("$defs")) {
|
||||||
findDefinitions("$defs");
|
findDefinitions("definitions");
|
||||||
}
|
}
|
||||||
|
|
||||||
attr = schema.find("$ref");
|
attr = schema.find("$ref");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user