generated from bazel-contrib/rules-template
-
-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
Description
What is the current behavior?
Only string-literal filters can be passed to assert_json_matches, but jq() supports using files.
Describe the feature
Change the signature to:
assert_json_matches(name, file1, file2, filter1 = ".", filter2 = ".", filter_file1 = None, filter_file2 = None, **kwargs):I'm happy to send a PR if you'd like; please assign the Issue to me if you agree that this is a worthwhile feature.
One problem will be incompatibility between the filter and filter_file args. Thoughts on having filter_file override filter i.f.f. filter == "."? This maintains backwards compatibility while avoiding ambiguity if both are set.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed