""" :Author: Daniel Mohr :Email: daniel.mohr@dlr.de :Date: 2021-02-15 (last change). :License: GNU GENERAL PUBLIC LICENSE, Version 3, 29 June 2007. """
""" :Author: Daniel Mohr :Email: daniel.mohr@dlr.de :Date: 2021-03-23 (last change).
:param args: namespace return from ArgumentParser.parse_args """ mode='r') as fd: mode='r') as fd: # check schema # the schema test of jsonschema is insufficient 'No "$schema" keyword in the given schema found. ' 'It is recommended to use this keyword to specifiy the used ' 'JSON version.') else: 'Schema "' + schema[u"$schema"] + '" not found in implemented validators of jsonschema.') # jsonschema.validate(instance, schema) except jsonschema.exceptions.SchemaError as msg: print(msg) sys.exit() isinstance(err.path[1], int) and ('name' in instance['data'][err.path[1]])): " (file: '%s')" % instance['data'][err.path[1]]['name'] '%s in%s:\n %s' % ( err.message, filenameoutput, ' -> '.join(map(str, err.path)))) else: |