Skip to content

Commit b9b7e00

Browse files
committed
[#100] Use parent_title for constructing identifier fields
1 parent 948b458 commit b9b7e00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flattentool/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def parse_schema_dict(self, parent_path, schema_dict, parent_id_fields=None, tit
107107
if 'properties' in schema_dict:
108108
if 'id' in schema_dict['properties']:
109109
if self.use_titles:
110-
id_fields = parent_id_fields + [parent_path+(schema_dict['properties']['id'].get('title') or 'id')]
110+
id_fields = parent_id_fields + [(parent_title if parent_title is not None else parent_path)+(schema_dict['properties']['id'].get('title') or 'id')]
111111
else:
112112
id_fields = parent_id_fields + [parent_path+'id']
113113
else:

0 commit comments

Comments
 (0)