check for $defs first, since it is more future-oriented

This commit is contained in:
Robert Patterson 2024-11-26 15:05:38 -06:00 committed by Patrick Boettcher
parent 1bcfdf8253
commit 8edd521853

View File

@ -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");