Merge pull request #2214 from bodnia/feature/issue-2077
Namespaces for arrays
This commit is contained in:
230
dist/swagger-ui.js
vendored
230
dist/swagger-ui.js
vendored
File diff suppressed because one or more lines are too long
17
dist/swagger-ui.min.js
vendored
17
dist/swagger-ui.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user