I have a nested array on my rails grape api.
expose(
:users,
documentation: {
type: Array,
desc: 'The pickups and deliveries for specific tours'
},
using: Fleetdog::Entities::Users
)
But when I visit the api-docs page the example value is a hash not an array.
example value
{ id: 'string',
users: {
id: 'string',
name: 'string'
}
Is this how grape supposed to work?