tests #1186 Render primitive types in "Response Class"

This commit is contained in:
Anna Bodnia
2016-02-05 16:02:01 +02:00
parent 39a171a61d
commit 256583bdb5
2 changed files with 37 additions and 2 deletions

View File

@@ -745,8 +745,8 @@ SwaggerUi.partials.signature = (function () {
switch (type) {
case 'object': return 'Object is not a primitive';
case 'array' : return 'Array[' + items.type + ']';
default: return type;
case 'array' : return 'Array[' + (items.format || items.type) + ']';
default: return schema.format || type;
}
};