dingo / api-docs

Documentation for the API package.
19 stars 22 forks source link

API Blueprint Cannot use Array in Response #23

Open caikeal opened 8 years ago

caikeal commented 8 years ago

use @Response(200, body={"data":[{"id":1, "name":"foo"},{"id":1, "name":"bar"}]}) will give a exception like Expected PlainValue, got '['

prometherion commented 8 years ago

@caikeal just use brackets instead of square brackets, so:

@Response(200, body={"data":{{"id":1, "name":"foo"},{"id":1, "name":"bar"}}})