mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 14:20:29 +01:00
Docs: Documentation is misleading/incomplete for BodyAsFile #601
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dotnetprofessional on GitHub (May 21, 2024).
Originally assigned to: @StefH on GitHub.
Describe the bug
The sample code at:
https://github.com/WireMock-Net/WireMock.Net/wiki/Response-Templating#mapping-json-example-using-handlebarsnet
Is incomplete which leads to a very frustrating experience. Tried for an hour or two to get transformers working until I found the following issue:
https://github.com/WireMock-Net/WireMock.Net/issues/386
The docs need to be updated to include that we also need to have the following property for this to work (btw why introduce another property?):
"UseTransformerForBodyAsFile": true
I did notice (now I know what to look for), a reference at:
UseTransformerForBodyAsFile
However, that should be a little clearer too, as it doesn't call out its to be included in the response.json file.
Expected behavior:
Docs provide clear and working example, which they don't.
@StefH commented on GitHub (May 21, 2024):
documentation has been updated