Joseph Method

Results 5 comments of Joseph Method

My workaround FYI is to add `documentation: { param_type: 'body' }` like this: ```ruby requires( :data, type: Array[JSON], documentation: { param_type: 'body' } ) do end ```

Relevant lines are https://github.com/ruby-grape/grape-swagger/blob/564b486430881a68fef0cb12dcff583503fd8911/lib/grape-swagger/doc_methods/parse_params.rb#L67 and https://github.com/ruby-grape/grape-swagger/blob/564b486430881a68fef0cb12dcff583503fd8911/lib/grape-swagger/doc_methods/parse_params.rb#L89

More info about this here: https://github.com/ruby-grape/grape-swagger/issues/721#issuecomment-595958967

Hi, it's been a long time since I've tried using this code but the main thing was that I *didn't* claim the interface. The idea I guess is that the...

FWIW there's a [thoughtbot post](https://robots.thoughtbot.com/validating-json-schemas-with-an-rspec-matcher) where they use `strict: true` so if people copy that matcher they may lose some time trying to figure out why for example the parser...