Skip to content

Commit f29d090

Browse files
committed
Wrong location sepcification
1 parent 582e12b commit f29d090

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

bin/json_tests_workflow.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,22 +42,20 @@ def main():
4242
# Get the list of changed files in the pull request
4343
changed_files = [file.filename for file in pr.get_files()]
4444

45+
print(changed_files)
4546
# Traverse each file in the 'tests' folder and print JSON content
4647
for file in changed_files:
47-
print(file)
4848
if file.startswith('tests/'):
4949
# Read the file content
5050
draft = file.split('/')[1]
5151

52-
print(draft)
53-
urls = json.loads(repo.get_contents("bin/specification_urls.json").decoded_content.decode('utf-8'))
52+
urls = json.loads(repo.get_contents("specification_urls.json").decoded_content.decode('utf-8'))
5453

5554
changed_file_content = repo.get_contents(file).decoded_content.decode('utf-8')
5655
# Parse JSON content
5756
try:
5857
json_content = json.loads(changed_file_content)
5958
for test in json_content:
60-
print("hiiii----------------")
6159
if "specification" in test:
6260
for spec, section in test["specification"]:
6361
if spec in ["core", "validation", "hyper-schema"]:

tests/draft2020-12/allOf.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"description": "allOf",
44
"schema": {
55
"$schema": "https://json-schema.org/draft/2020-12/schema",
6-
"specification":[ { "core": "10.2", "quote": "Subschemas of applicator keywords evaluate the instance completely independently such that the results of one such subschema MUST NOT impact the results of sibling subschemas." } ],
76
"allOf": [
87
{
98
"properties": {

0 commit comments

Comments
 (0)