|
|
|
@ -290,7 +290,8 @@ class Parser (Process):
|
|
|
|
|
if type(value[objkey]) == dict :
|
|
|
|
|
continue
|
|
|
|
|
if 'syn' in config and value[objkey] in config['syn'] :
|
|
|
|
|
value[objkey] = config['syn'][ value[objkey]]
|
|
|
|
|
# value[objkey] = config['syn'][ value[objkey]]
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
if key in rewrite :
|
|
|
|
|
|
|
|
|
@ -309,7 +310,8 @@ class Parser (Process):
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
|
|
if 'syn' in config and value in config['syn'] :
|
|
|
|
|
value = config['syn'][value]
|
|
|
|
|
# value = config['syn'][value]
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
if type(value) == dict :
|
|
|
|
|
|
|
|
|
@ -513,7 +515,7 @@ class Parser (Process):
|
|
|
|
|
schema = [key for key in claim.keys() if type(claim[key]) == list]
|
|
|
|
|
if schema :
|
|
|
|
|
schema = {"properties":dict.fromkeys(schema,{"mergeStrategy":"append"})}
|
|
|
|
|
print (schema)
|
|
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
schema = {}
|
|
|
|
|
merger = jsonmerge.Merger(schema)
|
|
|
|
|