merged
This commit is contained in:
10
dist/swagger-ui.js
vendored
10
dist/swagger-ui.js
vendored
@@ -24342,8 +24342,8 @@ SwaggerUi.partials.signature = (function () {
|
||||
return wrapTag(name, serializedProperties, attrs);
|
||||
}
|
||||
|
||||
function getInfiniteLoopMessage (name) {
|
||||
return '<!-- Infinite loop $ref:' + name + ' -->';
|
||||
function getInfiniteLoopMessage (name, loopTo) {
|
||||
return wrapTag(name, '<!-- Infinite loop $ref:' + loopTo + ' -->');
|
||||
}
|
||||
|
||||
function getErrorMessage (details) {
|
||||
@@ -24369,12 +24369,12 @@ SwaggerUi.partials.signature = (function () {
|
||||
case 'object':
|
||||
output = createObjectXML(descriptor); break;
|
||||
case 'loop':
|
||||
output = getInfiniteLoopMessage(descriptor.name); break;
|
||||
output = getInfiniteLoopMessage(descriptor.name, descriptor.config.loopTo); break;
|
||||
default:
|
||||
output = createPrimitiveXML(descriptor);
|
||||
}
|
||||
|
||||
if ($ref) {
|
||||
if ($ref && descriptor.type !== 'loop') {
|
||||
index = config.modelsToIgnore.indexOf($ref);
|
||||
if (index > -1) {
|
||||
config.modelsToIgnore.splice(index, 1);
|
||||
@@ -24405,7 +24405,7 @@ SwaggerUi.partials.signature = (function () {
|
||||
|
||||
if (config.modelsToIgnore.indexOf($ref) > -1) {
|
||||
type = 'loop';
|
||||
name = modelType;
|
||||
config.loopTo = modelType;
|
||||
} else {
|
||||
config.modelsToIgnore.push($ref);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user