Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
bodnia authored and kodekracker committed Mar 2, 2017
1 parent 4cd4e53 commit 3fab6e1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main/javascript/view/partials/signature.js
Original file line number Diff line number Diff line change
Expand Up @@ -719,15 +719,19 @@ SwaggerUi.partials.signature = (function () {
var value;
var items = definition.items;
var xml = definition.xml || {};
var namespace = getNamespace(xml);
var attributes = [];

if (!items) { return getErrorMessage(); }

value = createSchemaXML(name, items, models, config);

xml = xml || {};
if (namespace) {
attributes.push(namespace);
}

if (xml.wrapped) {
value = wrapTag(name, value);
value = wrapTag(name, value, attributes);
}

return value;
Expand Down

0 comments on commit 3fab6e1

Please sign in to comment.