Skip to content

Commit

Permalink
Merge pull request #1761 from pact-foundation/docs/update-body-override
Browse files Browse the repository at this point in the history
Docs/update body override
  • Loading branch information
rholshausen authored Jan 22, 2024
2 parents e78f514 + a4509a0 commit 936cd34
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions consumer/junit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -580,8 +580,8 @@ The `and` and `or` methods take a variable number of matchers (varargs).

By default, bodies will be handled based on their content types. For binary contents, the bodies will be base64
encoded when written to the Pact file and then decoded again when the file is loaded. You can change this with
an override property: `pact.content_type.override.<TYPE>.<SUBTYPE>=text|binary|json`. For instance, setting
`pact.content_type.override.application.pdf=text` will treat PDF bodies as a text type and not encode/decode them.
an override property: `pact.content_type.override.<TYPE>/<SUBTYPE>=text|binary|json`. For instance, setting
`pact.content_type.override.application/pdf=text` will treat PDF bodies as a text type and not encode/decode them.

### Matching on paths

Expand Down
4 changes: 2 additions & 2 deletions provider/junit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -524,8 +524,8 @@ having been verified due to a configuration error. **

By default, bodies will be handled based on their content types. For binary contents, the bodies will be base64
encoded when written to the Pact file and then decoded again when the file is loaded. You can change this with
an override property: `pact.content_type.override.<TYPE>.<SUBTYPE>=text|json|binary`. For instance, setting
`pact.content_type.override.application.pdf=text` will treat PDF bodies as a text type and not encode/decode them.
an override property: `pact.content_type.override.<TYPE>/<SUBTYPE>=text|json|binary`. For instance, setting
`pact.content_type.override.application/pdf=text` will treat PDF bodies as a text type and not encode/decode them.

### Controlling the generation of diffs

Expand Down

0 comments on commit 936cd34

Please sign in to comment.