This commit is contained in:
Tony Tam
2016-07-21 07:39:03 -07:00
4 changed files with 2076 additions and 11 deletions

2065
dist/lib/es5-shim.js vendored Normal file

File diff suppressed because it is too large Load Diff

10
dist/swagger-ui.js vendored
View File

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

File diff suppressed because one or more lines are too long

View File

@@ -842,8 +842,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) {
@@ -869,12 +869,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);
@@ -905,7 +905,7 @@ SwaggerUi.partials.signature = (function () {
if (config.modelsToIgnore.indexOf($ref) > -1) {
type = 'loop';
name = modelType;
config.loopTo = modelType;
} else {
config.modelsToIgnore.push($ref);
}