1
0
mirror of https://github.com/gsi-upm/senpy synced 2025-09-18 04:22:21 +00:00

Fix schema issues and parameter validation

This commit is contained in:
J. Fernando Sánchez
2018-05-14 11:38:02 +02:00
parent 48f5ffafa1
commit 697e779767
9 changed files with 44 additions and 16 deletions

View File

@@ -51,6 +51,10 @@ def read_schema(schema_file, absolute=False):
return jsonref.load(f, base_uri=schema_uri)
def dump_schema(schema):
return jsonref.dumps(schema)
def load_context(context):
logging.debug('Loading context: {}'.format(context))
if not context: