json 3.x breaking pact-ruby v1

Open Beginner friendly
#435 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
82/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
ruby
Domain
testing

Research direction

Read lib/pact/provider/pact_source.rb at the referenced call and check the JSON 3.x API behavior. Replace the failing JSON.load usage with the JSON.parse call shown in the issue, then run the relevant pact-provider-verifier CI or tests to confirm the error is resolved. Done when pact-ruby v1 works with json 3.x and can be released as a patch.

Written by the indexing model from the issue text.

Description

pact 1.67.5 (branch v1) lib/pact/provider/pact_source.rb:21 calls JSON.load(pact_json, nil, { max_nesting: 50 }), which raises ArgumentError under json 3.0;

This has broken pact-provider-verifier master CI since 2026-09-22

Requires a patch release for v1

use JSON.parse(pact_json, max_nesting: 50) instead

Dominant language
Ruby
Stars
2.2k
Forks
220
Avg merge
5h 22m
Merged PRs (30d)
3

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from pact-foundation/pact-ruby

All issues in pact-foundation/pact-ruby

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.