def rec_fields_list entity assert entity FIELDS map list of dict to li

1
2
3
4
5
def rec_fields_list(entity):
assert (entity['FIELDS'])
# map list of dict to list of tuples for convenience
fields = [fld for field in entity['FIELDS'] for fld in field.items()]
return [" : ".join(field) for field in fields]