Skip to content

fix(ffi): use the example value for a text body given as a matcher definition - #25

Open
YOU54F wants to merge 1 commit into
masterfrom
fix/ffi-text-body-matcher
Open

YOU54F wants to merge 1 commit into
masterfrom
fix/ffi-text-body-matcher

Conversation

@YOU54F

@YOU54F YOU54F commented Nov 9, 2026

Copy link
Copy Markdown
Owner

Commits

fix(ffi): use the example value for a text body given as a matcher definition

pact-js sends a text body such as string('07/14/2023') as a single
integration JSON matcher definition. The raw JSON was written as the body,
so the mock server returned the matcher JSON instead of the example. A text
body that is a matcher or generator definition now has its example used as
the body, and the matcher is applied to the whole body ($).

Fixes pact-foundation/pact-js#1107

🤖 Generated with Claude Code

…finition

pact-js sends a text body such as `string('07/14/2023')` as a single
integration JSON matcher definition. The raw JSON was written as the body,
so the mock server returned the matcher JSON instead of the example. A text
body that is a matcher or generator definition now has its example used as
the body, and the matcher is applied to the whole body (`$`).

Fixes pact-foundation/pact-js#1107

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Specifying Content-Type serializes Matcher object

1 participant