Skip to content

Commit 47b7227

Browse files
committed
[try] support array type parameter in try operation
add "items" as properties that is used for schema that is generated off a parametere Fixes #290
1 parent e533895 commit 47b7227

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/scripts/directives/tryoperation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ SwaggerEditor.controller('TryOperation', function ($scope, formdataFilter,
6262
// If parameter do not have a schema use parameter itself as schema
6363
schema = {type: 'object', properties: {}};
6464
schema.properties[parameter.name] = _.pick(parameter,
65-
'type', 'description', 'required', 'format');
65+
'type', 'description', 'required', 'format', 'items');
6666
return schema;
6767
}
6868

0 commit comments

Comments
 (0)