diff --git a/dist/swagger-ui.js b/dist/swagger-ui.js
index 47f3fa89..27d77036 100644
--- a/dist/swagger-ui.js
+++ b/dist/swagger-ui.js
@@ -26169,6 +26169,7 @@ SwaggerUi.Views.ParameterView = Backbone.View.extend({
/* jshint -W122 */
SwaggerUi.partials.signature = (function () {
+ // copy-pasted from swagger-js
var resolveSchema = function (schema) {
if (_.isPlainObject(schema.schema)) {
schema = resolveSchema(schema.schema);
@@ -26177,6 +26178,7 @@ SwaggerUi.partials.signature = (function () {
return schema;
};
+ // copy-pasted from swagger-js
var simpleRef = function (name) {
if (typeof name === 'undefined') {
return null;
@@ -26189,6 +26191,7 @@ SwaggerUi.partials.signature = (function () {
}
};
+ // copy-pasted from swagger-js
var getInlineModel = function(inlineStr) {
if(/^Inline Model \d+$/.test(inlineStr)) {
var id = parseInt(inlineStr.substr('Inline Model'.length).trim(),10); //
@@ -26199,6 +26202,7 @@ SwaggerUi.partials.signature = (function () {
return null;
};
+ // copy-pasted from swagger-js
var formatXml = function(xml) {
var contexp, fn, formatted, indent, l, lastType, len, lines, ln, pad, reg, transitions, wsexp;
reg = /(>)(<)(\/*)/g;
@@ -26272,6 +26276,7 @@ SwaggerUi.partials.signature = (function () {
return formatted;
};
+ // copy-pasted from swagger-js
var getModelSignature = function (name, schema, models, modelPropertyMacro) {
var strongOpen = '';
var strongClose = '';
@@ -26623,6 +26628,7 @@ SwaggerUi.partials.signature = (function () {
};
+ // copy-pasted from swagger-js
var schemaToJSON = function (schema, models, modelsToIgnore, modelPropertyMacro) {
// Resolve the schema (Handle nested schemas)
schema = resolveSchema(schema);
@@ -26710,6 +26716,7 @@ SwaggerUi.partials.signature = (function () {
return output;
};
+ // copy-pasted from swagger-js
var createJSONSample = function (value, modelsToIgnore) {
modelsToIgnore = modelsToIgnore || {};
@@ -26729,6 +26736,7 @@ SwaggerUi.partials.signature = (function () {
return schemaToJSON(value.definition, value.models, modelsToIgnore, value.modelPropertyMacro);
};
+ // copy-pasted from swagger-js
var getParameterModelSignature = function (type, definitions) {
var isPrimitive, listType;
@@ -26771,6 +26779,7 @@ SwaggerUi.partials.signature = (function () {
}
};
+ // copy-pasted from swagger-js
var createParameterJSONSample = function (type, models) {
var listType, sampleJson, innerType;
models = models || {};
diff --git a/src/main/javascript/view/partials/signature.js b/src/main/javascript/view/partials/signature.js
index b24c9fae..1dba74cd 100644
--- a/src/main/javascript/view/partials/signature.js
+++ b/src/main/javascript/view/partials/signature.js
@@ -2,6 +2,7 @@
/* jshint -W122 */
SwaggerUi.partials.signature = (function () {
+ // copy-pasted from swagger-js
var resolveSchema = function (schema) {
if (_.isPlainObject(schema.schema)) {
schema = resolveSchema(schema.schema);
@@ -10,6 +11,7 @@ SwaggerUi.partials.signature = (function () {
return schema;
};
+ // copy-pasted from swagger-js
var simpleRef = function (name) {
if (typeof name === 'undefined') {
return null;
@@ -22,6 +24,7 @@ SwaggerUi.partials.signature = (function () {
}
};
+ // copy-pasted from swagger-js
var getInlineModel = function(inlineStr) {
if(/^Inline Model \d+$/.test(inlineStr)) {
var id = parseInt(inlineStr.substr('Inline Model'.length).trim(),10); //
@@ -32,6 +35,7 @@ SwaggerUi.partials.signature = (function () {
return null;
};
+ // copy-pasted from swagger-js
var formatXml = function(xml) {
var contexp, fn, formatted, indent, l, lastType, len, lines, ln, pad, reg, transitions, wsexp;
reg = /(>)(<)(\/*)/g;
@@ -105,6 +109,7 @@ SwaggerUi.partials.signature = (function () {
return formatted;
};
+ // copy-pasted from swagger-js
var getModelSignature = function (name, schema, models, modelPropertyMacro) {
var strongOpen = '';
var strongClose = '';
@@ -456,6 +461,7 @@ SwaggerUi.partials.signature = (function () {
};
+ // copy-pasted from swagger-js
var schemaToJSON = function (schema, models, modelsToIgnore, modelPropertyMacro) {
// Resolve the schema (Handle nested schemas)
schema = resolveSchema(schema);
@@ -543,6 +549,7 @@ SwaggerUi.partials.signature = (function () {
return output;
};
+ // copy-pasted from swagger-js
var createJSONSample = function (value, modelsToIgnore) {
modelsToIgnore = modelsToIgnore || {};
@@ -562,6 +569,7 @@ SwaggerUi.partials.signature = (function () {
return schemaToJSON(value.definition, value.models, modelsToIgnore, value.modelPropertyMacro);
};
+ // copy-pasted from swagger-js
var getParameterModelSignature = function (type, definitions) {
var isPrimitive, listType;
@@ -604,6 +612,7 @@ SwaggerUi.partials.signature = (function () {
}
};
+ // copy-pasted from swagger-js
var createParameterJSONSample = function (type, models) {
var listType, sampleJson, innerType;
models = models || {};