VALIDATORS can leak implementation details about what function handles a validator

Open
#467 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 6 days

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
backend

Research direction

Start by reading SomeValidator.VALIDATORS and the implementation of the then validator inside if, as identified in the issue. Trace how validator names are exposed and determine how to prevent the mapping from revealing which function handles a validator; done means the implementation detail is no longer leaked without breaking validator behavior.

Written by the indexing model from the issue text.

Description

Bug Dialects v2

SomeValidator.VALIDATORS assumes a 1-1 mapping between validators and validating functions.

That's not necessarily the case though.

E.g., the implementation of the then validator happens inside if.

Dominant language
Python
Stars
5k
Forks
741
Avg merge
4d 17h
Merged PRs (30d)
6

Getting set up

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.

More from python-jsonschema/jsonschema

All issues in python-jsonschema/jsonschema

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.