Open caikeal opened 8 years ago
use @Response(200, body={"data":[{"id":1, "name":"foo"},{"id":1, "name":"bar"}]}) will give a exception like Expected PlainValue, got '['
@Response(200, body={"data":[{"id":1, "name":"foo"},{"id":1, "name":"bar"}]})
Expected PlainValue, got '['
@caikeal just use brackets instead of square brackets, so:
@Response(200, body={"data":{{"id":1, "name":"foo"},{"id":1, "name":"bar"}}})
use
@Response(200, body={"data":[{"id":1, "name":"foo"},{"id":1, "name":"bar"}]})
will give a exception likeExpected PlainValue, got '['