lib/grape-swagger/endpoint.rb in grape-swagger-0.20.0 vs lib/grape-swagger/endpoint.rb in grape-swagger-0.20.1
- old
+ new
@@ -268,9 +268,10 @@
memo[x.first] = { type: data_type }
end
memo[x.first][:enum] = x.last[:values] if x.last[:values] && x.last[:values].is_a?(Array)
end
+ memo[x.first][:description] = x.last[:documentation][:desc] if x.last[:documentation] && x.last[:documentation][:desc]
end
end
def expose_params_from_model(model)
model_name = model_name(model)