Skip to content

Commit 77527b6

Browse files
committed
Stupidity corrected
1 parent eb8fd76 commit 77527b6

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

bin/json_tests_workflow.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,12 @@ def main():
6161
for test in json_content:
6262
print(test)
6363
if "specification" in test:
64-
for spec, section in test["specification"]:
65-
print(spec, section)
66-
if spec in ["core", "validation", "hyper-schema"]:
67-
print(urls[draft][spec] + section)
68-
else: print(urls[spec] + section)
64+
for specification_object in test["specification"]:
65+
for key, value in specification_object.items():
66+
if key in ["core", "validation", "hyper-schema"]:
67+
print(urls[draft][key] + value)
68+
elif key in ["quote"]: continue
69+
else: print(urls[key] + value)
6970
except json.JSONDecodeError as e:
7071
print(f"Error parsing JSON in file '{file}': {e}")
7172

0 commit comments

Comments
 (0)