You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also tried using param_type: 'body' and is_array: true
params do optional :requests, type: API::V1::Entities::Body, documentation: { is_array: true, param_type: 'body'}, desc: '...' end
It ignores the outer hash when sending the application/json
The text was updated successfully, but these errors were encountered:
Hi,
Could you please tell me if there is a way to accept the array of entities in the params with content/type application json
Example

code
params do optional :requests, type: API::V1::Entities::Body, desc: '...' end
But I would like to have array of requests as below
{ "requests": [ { "method": "string", "path": "string" }, { "method": "string", "path": "string" } ] }
Also tried using param_type: 'body' and is_array: true
params do optional :requests, type: API::V1::Entities::Body, documentation: { is_array: true, param_type: 'body'}, desc: '...' end
It ignores the outer hash when sending the application/json
The text was updated successfully, but these errors were encountered: