Skip to content

Commit 9a2d0c7

Browse files
committed
fix: disable the criteria 'extended' in json-schema-ref-parser
Refs: APIDevTools/json-schema-ref-parser#338
1 parent dfed7f8 commit 9a2d0c7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

extension.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version":2,
33
"name":"MwJson",
4-
"version":"0.46.0",
4+
"version":"0.46.1",
55
"author":[
66
"[https://github.com/simontaurus Simon Stier]"
77
],

modules/ext.MwJson.util/json-schema-ref-parser.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -16521,10 +16521,10 @@ function remap (inventory) {
1652116521
// If the $ref points to itself, then sort it higher than other $refs that point to this $ref
1652216522
return a.circular ? -1 : +1;
1652316523
}
16524-
else if (a.extended !== b.extended) {
16524+
/*else if (a.extended !== b.extended) {
1652516525
// If the $ref extends the resolved value, then sort it lower than other $refs that don't extend the value
1652616526
return a.extended ? +1 : -1;
16527-
}
16527+
}*/
1652816528
else if (a.indirections !== b.indirections) {
1652916529
// Sort direct references higher than indirect references
1653016530
return a.indirections - b.indirections;

0 commit comments

Comments
 (0)