Skip to content

Commit

Permalink
Merge branch 'main' into oleg-nenashev-patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
tomakehurst authored Feb 28, 2024
2 parents 6d3f325 + 90ca7e1 commit b4e0c7d
Show file tree
Hide file tree
Showing 2 changed files with 2,067 additions and 2 deletions.
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ For Gradle users:

```groovy
dependencies {
implementation 'org.wiremock:wiremock-faker-extension:0.1.0'
implementation 'org.wiremock.extensions:wiremock-faker-extension-standalone:0.1.1'
}
```

Expand All @@ -39,8 +39,17 @@ new WireMockServer(wireMockConfig().extensions(RandomExtension.class));

### Step 3: Use it in your stubs!

```yaml
{% raw %}
```handlebars
{{ random 'Name.first_name' }}
```
{% endraw %}

This will generate random first names in the `en-US` locale for every request.


### Technical notes
This library brings `net.datafaker:datafaker` as transitive dependency, which may result in conflicts at building time.
If that's the case, the `net.datafaker:datafaker` dependency needs to be excluded.

For a full reference of the available keys, see the [Reference Documentation](./docs/reference.md).
Loading

0 comments on commit b4e0c7d

Please sign in to comment.