#1248 createXMLSample handle prefix and names in xml

This commit is contained in:
Anna Bodnia
2016-01-12 15:26:59 +02:00
parent 7a8f7016c2
commit 73feed4ca2
4 changed files with 60 additions and 3 deletions

9
dist/swagger-ui.js vendored
View File

@@ -26833,8 +26833,17 @@ SwaggerUi.partials.signature = (function () {
};
var type = definition.type;
var format = definition.format;
var xml = definition.xml || {};
var value;
if (xml.name) {
name = xml.name;
}
if (xml.prefix) {
name = xml.prefix + ':' + name;
}
if (_.keys(primitivesMap).indexOf(type) !== -1) {
if (type === 'string') {
value = format ? primitivesMap.string[format] : primitivesMap.string.default;