Rails Grape API 'id is invalid' in request that requires no id
问题 I have a Grape API protected by Doorkeeper and I have a bunch of methods which work perfectly. However, there's one method that behaves weirdly. It is a GET request that requires no parameters and running it throws the following error: Grape::Exceptions::ValidationErrors at /v1/discount_cards/all.json id is invalid My method looks like this: desc 'Get all the cards of current customer' params {} get 'all' do current_customer.discount_cards.to_json(include: { barcode: { include: :barcode_type