python-jsonschema / python-jsonschema/jsonschema
Error message for "additionalProperties" 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
This is a follow-up to the discussion in #971 (sorry for the delay).
To reproduce the error message of "additionalProperties", some preprocessing needs to be done based on the data readily available in the ValidationError.
Especially, the offending properties are computed with private function find_additional_properties.
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 discussion in #971 and inspect jsonschema/_validators.py, especially the private find_additional_properties function, alongside the ValidationError documentation. Determine how the offending properties are currently derived and define a way for the available ValidationError data to reproduce the additionalProperties message without that preprocessing; verify the behavior with the relevant validation tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100