python-jsonschema / python-jsonschema/jsonschema
VALIDATORS can leak implementation details about what function handles a validator
Open
Nobody has claimed this yet.
Bug
Dialects v2
- Dominant language
- Python
- Stars
- 5k
- Forks
- 671
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 10
Description
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.
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
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.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100