This commit is contained in:
bodnia
2016-03-01 17:30:52 +02:00
parent 8823e5af26
commit 33739440fd
6 changed files with 21 additions and 12 deletions

View File

@@ -926,10 +926,10 @@ SwaggerUi.partials.signature = (function () {
return new Descriptor(name, type, definition, models, config);
}
function createXMLSample (definition, models, isParam) {
function createXMLSample (name, definition, models, isParam) {
var prolog = '<?xml version="1.0"?>';
return formatXml(prolog + createSchemaXML('', definition, models, { isParam: isParam } ));
return formatXml(prolog + createSchemaXML(name, definition, models, { isParam: isParam } ));
}
return {