Skip to content

Commit 010eba6

Browse files
committed
check for $defs first, since it is more future-oriented
1 parent 5bcd66c commit 010eba6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/json-validator.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1396,8 +1396,8 @@ std::shared_ptr<schema> schema::make(json &schema,
13961396
}
13971397
return false;
13981398
};
1399-
if (!findDefinitions("definitions")) {
1400-
findDefinitions("$defs");
1399+
if (!findDefinitions("$defs")) {
1400+
findDefinitions("definitions");
14011401
}
14021402

14031403
attr = schema.find("$ref");

0 commit comments

Comments
 (0)