Skip to content

Commit 26a30c8

Browse files
committed
fix for array params
1 parent 06a4038 commit 26a30c8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/swagger.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -622,6 +622,9 @@ var SwaggerOperation = function(nickname, path, method, parameters, summary, not
622622

623623
// for 1.1 compatibility
624624
var type = param.type || param.dataType;
625+
if(type === 'array') {
626+
type = 'array[' + (param.items.$ref ? param.items.$ref : param.items.type) + ']';
627+
}
625628

626629
if(type.toLowerCase() === 'boolean') {
627630
param.allowableValues = {};

0 commit comments

Comments
 (0)