Hi everyone,
While reviewing the ProducesConsumes class, I came across a reference to Grape::ContentTypes::CONTENT_TYPES. In the newer version of Grape, this has been replaced by Grape::ContentTypes::DEFAULTS, as highlighted in the diff below:
Diff of lib/grape/content_types.rb
Additionally, here is the faulty code that caused our workflows to break:
|
args.flatten.map { |x| Grape::ContentTypes::CONTENT_TYPES[x] || x }.uniq |