New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[3.0.0] Custom ResponseTemplateTransformer gets overwritten by default implementation #2349
Comments
A bit more notes, the "config" object above does contain the right |
Hi @manofthepeace,
|
I also added wiremock/wiremock.org#164 to update the documentation. |
This is a documentation issue - being addressed shortly. Local templating is enabled by default in WireMock 3+ (you can disable it with This will do all the heavy lifting regarding construction of the transformer. |
I still do not believe this is a only doc issue. globalTempating is one thing, but please see; #2350 (comment) |
I've pushed a further doc fix that should address your other concern: |
Proposal
In Wiremock 2.35 I have the following external file;
file.json
with the following code;
in 3.0 the code change to this;
in the json returned by wiremock, the
{{now offset='2 hours' format='epoch'}}
is not replaced thus leading to wrong json format + data. I must say I also find it odd api wise to pass the FileSource to both the config and the ResponseTemplateEngine.Reproduction steps
have wiremock returning a classpathfilesource like the above and see the template not being replaced.
References
Relates to; wiremock/wiremock.org#157
The text was updated successfully, but these errors were encountered: