Repository navigation
Conversation
…enerator-only values
from_integration_json_v2 (path, query, header values) only looked for
pact:generator:type inside the matcher branch, and fell back to
map["value"] for any other JSON object. A header such as
X-Meta: {"alg":"HS256","typ":"JWT"} was stored as "", and a
ProviderState generator without a matcher was dropped.
- A JSON object with pact:generator:type but no matcher now registers
the generator and uses its value as the example.
- A JSON object with no pact:* keys is kept as the string as written.
- bodies.rs process_object now dispatches generator-only objects to
process_matcher, so the generator is registered and value is used.
Fixes pact-foundation/pact-js#1058, pact-foundation#448
and the generator-only part of pact-foundation/pact-js#1088.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Commits
fix(ffi): keep JSON header/query values without matchers and honour generator-only values
from_integration_json_v2 (path, query, header values) only looked for
pact:generator:type inside the matcher branch, and fell back to
map["value"] for any other JSON object. A header such as
X-Meta: {"alg":"HS256","typ":"JWT"} was stored as "", and a
ProviderState generator without a matcher was dropped.
the generator and uses its value as the example.
process_matcher, so the generator is registered and value is used.
Fixes pact-foundation/pact-js#1058, pact-foundation#448
and the generator-only part of pact-foundation/pact-js#1088.
🤖 Generated with Claude Code