mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 21:10:32 +01:00
Need ability to add custom ResponseMessageTransformers #179
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 @muzammilkm on GitHub (Jun 16, 2019).
Version: 1.0.19.
There is no way to add custom Response Message Transforms apart from using built in HandleBars which is also limited, I am trying generate response based on current datetime and also need to do some calculation via mapping file.
So could you please add way to extend Response Message Transforms like wiremock does Extending WireMock or if HandlebarsContext is accessible so, that we could Register custom transformation that are needed Registering Helpers ?
@StefH commented on GitHub (Jun 17, 2019):
You are correct, extending handlebars is not yet supported, I'll take a look.
If you just want custom C# code, this is also possible using:
@muzammilkm commented on GitHub (Jun 17, 2019):
Yes, Right now, i am using inline style along json mapping till a new version is available.
@StefH commented on GitHub (Jun 18, 2019):
Settings class will be extended with:
Is this enough?
@muzammilkm commented on GitHub (Jun 18, 2019):
Thanks that work.
@StefH commented on GitHub (Jun 19, 2019):
You can try the preview version:
Also, if you think your Handlebars extension is useful for common usage, please share the code.
@muzammilkm commented on GitHub (Jun 20, 2019):
Thanks you quick turn around. Sure, if some thing is generic nature, will certainly share it.
@StefH commented on GitHub (Jun 20, 2019):
Also closing this one.