Lines Matching defs:json
9 # This script validates a json pipeline file against the schema files.
14 import json
17 base_schema_filename = os.path.join("..", "json", "vk.json")
18 vkpcc_schema_filename = os.path.join("..", "json", "vkpcc.json")
23 parser.add_argument('json_file', help='The json file to validate')
32 # Exit with error if json or schema files do not exist
34 print('Error: json file \"%s\" does not exist.' % args.json_file)
37 print('Error: json file \"%s\" does not exist.' % base_schema_filename)
40 print('Error: json file \"%s\" does not exist.' % vkpcc_schema_filename)
43 # Read the json schemas files in as text
50 baseSchema = json.loads(baseSchemaText)
51 vkSchema = json.loads(vkSchemaText)
52 jsonData = json.loads(jsonText)
54 # Ensure that the generated vk.json schema is a valid schema
61 # Ensure that vkpcc.json is also a valid schema
76 # Validate the input .json file using the schemas