#1248 createXMLSample added comments what was copy-pasted from swagger-js
This commit is contained in:
9
dist/swagger-ui.js
vendored
9
dist/swagger-ui.js
vendored
@@ -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 = '<span class="strong">';
|
||||
var strongClose = '</span>';
|
||||
@@ -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 || {};
|
||||
|
||||
Reference in New Issue
Block a user