#1248 createXMLSample show XML example for parameter

This commit is contained in:
Anna Bodnia
2016-01-15 15:29:37 +02:00
parent 4443883546
commit ea688851f9
6 changed files with 153 additions and 58 deletions

View File

@@ -811,6 +811,8 @@ SwaggerUi.partials.signature = (function () {
xml = definition.xml || {};
$ref = definition.$ref;
if (!_.isObject(definition)) { return getErrorMessage(); }
if (_.isString($ref)) {
return getModelXML($ref, models);
}