python-jsonschema / python-jsonschema/jsonschema

Support hiding annotation keywords when reporting errors

Open
#1,271 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Sometimes a schema contains annotation-only keywords (particularly e.g. description or $comment) which effectively serve no purpose when reporting validation errors and essentially make the output longer / harder to read through.

While it would be nice if we had some even more fancy way of indicating what parts of the schema are relevant (e.g. via syntax highlighting and/or direct "arrow" pointing), a nice "cheaper" option would be to be able to render schemas without their annotation keywords (configurably).

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

No file, test, or entry point is named. Start by locating the schema-rendering path used in validation error reporting, then define how configurable omission of annotation-only keywords such as description and $comment should work; done means schemas can be rendered without those keywords while errors remain readable.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.