mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-03-29 10:16:52 +00:00
Report duplicate keys in check_json
Raise ValueError and return 1 if json contains duplicate keys
This commit is contained in:
parent
11a2fdbab8
commit
fe37451719
3 changed files with 22 additions and 1 deletions
4
testing/resources/duplicate_key_json.json
Normal file
4
testing/resources/duplicate_key_json.json
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"hello": "world",
|
||||
"hello": "planet"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue