mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-25 18:13:44 +03:00
parent
89054dae6c
commit
3908a7c464
|
@ -261,7 +261,9 @@ export class SchemaModel {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const inversedMapping = isLimitedToMapping ? { ...explicitInversedMapping } : { ...implicitInversedMapping, ...explicitInversedMapping };
|
const inversedMapping = isLimitedToMapping
|
||||||
|
? { ...explicitInversedMapping }
|
||||||
|
: { ...implicitInversedMapping, ...explicitInversedMapping };
|
||||||
|
|
||||||
let refs: Array<{ $ref; name }> = [];
|
let refs: Array<{ $ref; name }> = [];
|
||||||
|
|
||||||
|
@ -292,7 +294,7 @@ export class SchemaModel {
|
||||||
|
|
||||||
if (indexLeft < 0 && indexRight < 0) {
|
if (indexLeft < 0 && indexRight < 0) {
|
||||||
// out of mapping, order by name
|
// out of mapping, order by name
|
||||||
return left.name.localCompare(right.name);
|
return left.name.localeCompare(right.name);
|
||||||
} else if (indexLeft < 0) {
|
} else if (indexLeft < 0) {
|
||||||
// the right is found, so mapping wins
|
// the right is found, so mapping wins
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user