Skip to content

Commit

Permalink
Fix erroneous templating function in doc (#1077)
Browse files Browse the repository at this point in the history
  • Loading branch information
tommysitu committed Jun 15, 2023
1 parent 931a473 commit 9573b26
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/pages/keyconcepts/templating/templating.rst
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,11 @@ Additional data can come from helper methods. These are the ones Hoverfly curren
+-----------------------------------------------------------+-----------------------------------------------------------+-----------------------------------------+
| A random UUID | ``{{ randomUuid }}`` | 7b791f3d-d7f4-4635-8ea1-99568d821562 |
+-----------------------------------------------------------+-----------------------------------------------------------+-----------------------------------------+
| Replace all occurrences of the old value with the new | ``{{ replace Request.Body 'be' 'mock' }}`` | |
| Replace all occurrences of the old value with the new | ``{{ replace (Request.Body 'jsonpath' '$.text')`` | |
| | ``'be' 'mock' }}`` | |
| value in the target string | (where Request.Body has the value of | |
| | | |
| value in the target string | (where Request.Body has the value of "to be or not to be" | to mock or not to mock |
| | {"text":"to be or not to be"} | {"text":"to mock or not to mock"} |
+-----------------------------------------------------------+-----------------------------------------------------------+-----------------------------------------+
| Generate random data using go-fakeit | ``{{ faker 'Name' }}`` | John Smith |
+-----------------------------------------------------------+-----------------------------------------------------------+-----------------------------------------+
Expand Down

0 comments on commit 9573b26

Please sign in to comment.