Hi,
I just can't figure out how to declare an array of strings as an attribute in a grape-entity declaration, so I get back the correct swagger.json from grape swagger.
It is no problem in swagger, just can't figure out how grape-entity does it.
I suppose it should work like
expose :images, documentation: {is_array: true, type: "string", desc: 'uuids of some images'}
but it doesn't work and will, depending on what I try, either ignore the 'array' or the string attribute type and will not nest the items hash below. It only works when using custom entity types.
What is the correct syntax to use?
Thank you,
Gregor