-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #495 from martincostello/fix-bundles-with-no-param…
…eters Fix bundle templating with no values in bundle
- Loading branch information
Showing
3 changed files
with
54 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
tests/HttpClientInterception.Tests/Bundles/templated-bundle-json-no-parameters.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/justeat/httpclient-interception/main/src/HttpClientInterception/Bundles/http-request-bundle-schema.json", | ||
"id": "templated-bundle-json-no-parameters", | ||
"comment": "An HTTP request bundle that uses templating for JSON where the parameters are only defined in code.", | ||
"version": 1, | ||
"items": [ | ||
{ | ||
"comment": "An HTTP request for a JSON response that uses templating.", | ||
"uri": "https://api.github.com/orgs/${CompanyName}/repos", | ||
"contentFormat": "json", | ||
"contentJson": [ | ||
{ | ||
"id": 123456, | ||
"name": "${RepoName}", | ||
"full_name": "${CompanyName}/${RepoName}", | ||
"private": false, | ||
"owner": { | ||
"login": "${CompanyName}", | ||
"id": 1516790 | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} |