Skip to content

API Blueprint Cannot use Array in Response #23

Open

Description

@caikeal

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

Activity

  1. changed the title [-]API Blueprint Documentation Cannot use Array in Response[/-] [+]API Blueprint Cannot use Array in Response[/+] on Jun 6, 2016
  2. prometherion commented on Nov 2, 2016

    @prometherion

    @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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions