I’ve defined a collection resourceType according to the RAML 200 Tutorial like so:
collection:
get?:
responses:
200:
body:
application/json:
type: <<resourcePathName |!singularize>>
However I would like to also support adding an example. I’ve tried multiple variations, including
example: <<resourcePathName |!singularize>>
and
example: <>
But the compiler keeps complaining that it’s expecting an array. Does the language support this? And if so, can someone please provide a working example?