Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Blueprint Cannot use Array in Response #23

Open
caikeal opened this issue Jun 6, 2016 · 1 comment
Open

API Blueprint Cannot use Array in Response #23

caikeal opened this issue Jun 6, 2016 · 1 comment

Comments

@caikeal
Copy link

caikeal commented Jun 6, 2016

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

@caikeal caikeal changed the title API Blueprint Documentation Cannot use Array in Response API Blueprint Cannot use Array in Response Jun 6, 2016
@prometherion
Copy link

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants