#1248 createXMLSample handle prefix and names in xml
This commit is contained in:
9
dist/swagger-ui.js
vendored
9
dist/swagger-ui.js
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user