Skip to content

Compatibility with grape 2.2.0 #939

Closed
@padde

Description

@padde

Running on the latest 2.2.0 release of grape will produce these exceptions:

NameError:
  uninitialized constant Grape::ContentTypes::CONTENT_TYPES
# ./lib/grape-swagger/endpoint.rb:15:in `content_types_for'

NoMethodError:
  undefined method `formatters' for module Grape::Formatter
# ./lib/grape-swagger/endpoint.rb:14:in `content_types_for'

Used here:

Grape has removed/renamed these constants/methods via ruby-grape/grape@fb67ea9#diff-e28e889e3579545f8e2fedc3ab52f78530206ed808afdc9a23703f8b089f80e3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions