Skip to content

Commit e29628b

Browse files
committed
update json validator version from 4->7
1 parent c786dfe commit e29628b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

validator.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import requests
88
import zipfile
99
from hashlib import sha256
10-
from jsonschema import Draft4Validator, FormatChecker
10+
from jsonschema import Draft7Validator, FormatChecker
1111
import win32api
1212
from win32api import GetFileVersionInfo, LOWORD, HIWORD
1313

@@ -97,7 +97,7 @@ def gen_pl_table(filename):
9797
def parse(filename):
9898
try:
9999
schema = json.loads(open("pl.schema").read())
100-
schema = Draft4Validator(schema, format_checker=FormatChecker())
100+
schema = Draft7Validator(schema, format_checker=FormatChecker())
101101
except ValueError as e:
102102
post_error("pl.schema - " + str(e))
103103
return
@@ -149,7 +149,7 @@ def parse(filename):
149149
dll_name = f'{plugin["folder-name"]}.dll'.lower()
150150

151151
# Notepad++ is not case sensitive, but extracting files from the zip is,
152-
# so find the exactfile name to use
152+
# so find the exact file name to use
153153
for file in zip.namelist():
154154
if dll_name == file.lower():
155155
dll_name = file

0 commit comments

Comments
 (0)