python-jsonschema / python-jsonschema/jsonschema
Error message for "minContains" not easily reproducible with data available in the ValidationError
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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