matryer / silk

Markdown based document-driven RESTful API testing.
http://silktest.org/
GNU General Public License v2.0
942 stars 69 forks source link

Support formatted JSON in response body assertions #24

Closed narqo closed 8 years ago

narqo commented 8 years ago

For a large bodies it'd be much user-friendlier to support formatted JSON in the body assert field. Currently if I have an assertion:

===

'''
{
  "resource": "api_status",
  "body": {
    "blah": "blah"
  }
}
'''

and my API returns {"resource":"api_status","body":{"blah":"blah"}}, I get "body doesn't match" error.

matryer commented 8 years ago

please see https://github.com/matryer/silk/issues/25