Feature request: Allow validation of $schema specified in JSON file
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
Start by tracing the CLI path that accepts a schemafile and validates JSON input. Determine how an opt-in $schema choice should interact with the schemafile argument, including which source takes precedence. Done means the behavior is implemented with documented semantics and covered by validation tests.
Written by the indexing model from the issue text.
Description
Heyho,
I have created a generic schema that I want to run against json files in different projects. This works great by passing in a schemafile to the validator. But some projects/files could use a more specific schema based on the generic one.
I could specify a $schema in the json contents, but that would get ignored in favor of the schemafile passed in as a CLI argument. In case the user uses a json language server, they would get the proper typehints.
Could the $schema be respected by this cli tool? Maybe even opt-in.
- Dominant language
- Python
- Stars
- 341
- Forks
- 71
- Avg merge
- 6d 13h
- Merged PRs (30d)
- 6
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.
More from python-jsonschema/check-jsonschema
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
-
enhancement
python-jsonschema/check-jsonschema#668 · 9 comments · 1 assignee ·
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
python-jsonschema/check-jsonschema#655 · 1 reaction ·
All issues in python-jsonschema/check-jsonschema
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
stephrobert/dsoxlab#238 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
sublimehq/package_control#1780 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
nwg-piotr/nwg-displays#145 ·