python-jsonschema / python-jsonschema/jsonschema

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

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

Nobody has claimed this yet.

Bug Error Reporting
Dominant language
Python
Stars
5k
Forks
671
Avg merge
1d 1h
Merged PRs (30d)
10

Description

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.

Contributor guide

Open the contributing guide

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.

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.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.