The change allows some or all of a JSON value to be read from disk to be used in a json path test. Examples are are in the data.yaml test file and in the jsonpath.rst file. This will help with test that either need to validate full responses or that have complex responses that need to be verified but are big enough that having them in the yaml file muddies the water.
This feature has been requested by a few different parties. It's not something I originally wanted to do but enough people wanted it and it is easy enough to do that...why fight it?
The change allows some or all of a JSON value to be read from disk to be used in a json path test. Examples are are in the
data.yaml
test file and in thejsonpath.rst
file. This will help with test that either need to validate full responses or that have complex responses that need to be verified but are big enough that having them in the yaml file muddies the water.This feature has been requested by a few different parties. It's not something I originally wanted to do but enough people wanted it and it is easy enough to do that...why fight it?
/cc @FND @jasonamyers @tomviner @justanotherdot