We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29afe07 commit c3397c2Copy full SHA for c3397c2
lib/grape-swagger/doc_methods/parse_params.rb
@@ -64,9 +64,8 @@ def document_array_param(value_type)
64
if value_type[:is_array]
65
if value_type[:documentation].present?
66
param_type = value_type[:documentation][:param_type]
67
- if (doc_type = value_type[:documentation][:type])
68
- type = GrapeSwagger::DocMethods::DataType.mapping(doc_type)
69
- end
+ doc_type = value_type[:documentation][:type]
+ type = GrapeSwagger::DocMethods::DataType.mapping(doc_type) if doc_type
70
end
71
array_items = { 'type' => type || value_type[:data_type] }
72
0 commit comments