diff --git a/lib/grape-swagger/endpoint.rb b/lib/grape-swagger/endpoint.rb index 50229fa6..c60de73c 100644 --- a/lib/grape-swagger/endpoint.rb +++ b/lib/grape-swagger/endpoint.rb @@ -211,7 +211,6 @@ def response_object(route) next if memo.key?(204) next unless !response_model.start_with?('Swagger_doc') && (@definitions[response_model] || value[:model]) - @definitions[response_model][:description] = description_object(route) # TODO: proof that the definition exist, if model isn't specified reference = { '$ref' => "#/definitions/#{response_model}" } memo[value[:code]][:schema] = if route.options[:is_array] && value[:code] < 300