python-jsonschema / python-jsonschema/jsonschema

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

Open
#992 3 comments 1 reaction 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

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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.