Error message for "minContains" not easily reproducible with data available in the ValidationError

Open
#993 4 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 6 days

@inchang-ing is already working on this.

Since Oct 20, 2026.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
62/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
python

Research direction

Read the ValidationError documentation and the minContains handling in jsonschema/_validators.py around the linked line. Trace how the reported match count is produced and determine how it can be reproduced from the data exposed by ValidationError. Done means reproducing the minContains error message without extra preprocessing outside that error data.

Written by the indexing model from the issue text.

Description

Bug Error Reporting

To reproduce the error message of "minContains", some preprocessing needs to be done based on the data readily available in the ValidationError.

Especially, the number of matches reported in the error message are computed in not reproducible preprocessing steps.

Dominant language
Python
Stars
5k
Forks
741
Avg merge
4d 17h
Merged PRs (30d)
6

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 python-jsonschema/jsonschema

All issues in python-jsonschema/jsonschema

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.