summaryrefslogtreecommitdiff
path: root/lib/python/qmk/json_schema.py
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2022-06-18 06:30:46 +0100
committerGitHub <noreply@github.com>2022-06-18 15:30:46 +1000
commit17ec1650fd4fd27b3bf409e3493faf11c8d421e8 (patch)
tree971345d0b08d840fb28951c03af689dac0ebcd8f /lib/python/qmk/json_schema.py
parent7b3ee1db8cfaed4315b93f7f4c06f07faa08ae71 (diff)
Additional schema fixes (#17414)
Diffstat (limited to 'lib/python/qmk/json_schema.py')
-rw-r--r--lib/python/qmk/json_schema.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/python/qmk/json_schema.py b/lib/python/qmk/json_schema.py
index 682346113e..01175146b5 100644
--- a/lib/python/qmk/json_schema.py
+++ b/lib/python/qmk/json_schema.py
@@ -68,11 +68,7 @@ def create_validator(schema):
schema_store = compile_schema_store()
resolver = jsonschema.RefResolver.from_schema(schema_store[schema], store=schema_store)
- # TODO: Remove this after the jsonschema>=4 requirement had time to reach users
- try:
- return jsonschema.Draft202012Validator(schema_store[schema], resolver=resolver).validate
- except AttributeError:
- return jsonschema.Draft7Validator(schema_store[schema], resolver=resolver).validate
+ return jsonschema.Draft202012Validator(schema_store[schema], resolver=resolver).validate
def validate(data, schema):