This commit is contained in:
Anna Bodnia
2016-06-13 14:30:30 +03:00
parent efb7765227
commit 8e60b0a7c4

View File

@@ -719,15 +719,19 @@ SwaggerUi.partials.signature = (function () {
var value; var value;
var items = definition.items; var items = definition.items;
var xml = definition.xml || {}; var xml = definition.xml || {};
var namespace = getNamespace(xml);
var attributes = [];
if (!items) { return getErrorMessage(); } if (!items) { return getErrorMessage(); }
value = createSchemaXML(name, items, models, config); value = createSchemaXML(name, items, models, config);
xml = xml || {}; if (namespace) {
attributes.push(namespace);
}
if (xml.wrapped) { if (xml.wrapped) {
value = wrapTag(name, value); value = wrapTag(name, value, attributes);
} }
return value; return value;