apiaryio / dredd

Language-agnostic HTTP API Testing Tool
https://dredd.org
MIT License
4.2k stars 280 forks source link

[Questions] Partial Response Assertions #483

Closed bkuhl closed 7 years ago

bkuhl commented 8 years ago

Is it possible to perform partial assertions on responses? We're looking to follow the JSON-API spec for some upcoming projects and the responses can become quite exhaustive. In some scenarios we may wish to just perform assertions based on the data section of the response, not relations.

honzajavorek commented 7 years ago

@bkuhl I admit it took some time to find a matching response, but I think you might want to check out https://github.com/apiaryio/dredd/issues/253. It contains an example on how you can write your own validation and rewrite Gavel.js validation results with it. Do you think that would work for you?

honzajavorek commented 7 years ago

Let me know please and feel free to re-open!