Skip to content

Conversation

danish-smartpension
Copy link

Create a new match_json matcher, which matches the exact attributes of json and use the existing functionality of include_json

@amazeas
Copy link

amazeas commented Feb 19, 2024

@waterlink this would prove useful to us, and covers part of #21, what do you think ?

@volonterx
Copy link

Wow, great work, thanks @danish-smartpension!
Hope it will be merged soon, this is perfect for generic json response checks.

matthew-healy added a commit to gigs/rspec-json-expectations that referenced this pull request Aug 12, 2025
This commit adds a `match_json` matcher which only succeeds when the
value being tested has *exactly* the fields specified.

The work here was partly based on waterlink#39.
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.

3 participants