Skip to content

Commit 84f40f4

Browse files
authored
Merge pull request #4 from Haitham-ghaida/fix-pydantic-validation
changed role to roles and changed to list for pydantic validation
2 parents a2f608c + 3aaf4e8 commit 84f40f4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ecoinvent_migrate/main.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@ def generate_technosphere_mapping(
168168
name=f"{source_db_name}-{target_db_name}",
169169
description=description,
170170
contributors=[
171-
{"title": "ecoinvent association", "path": "https://ecoinvent.org/", "role": "author"},
172-
{"title": "Chris Mutel", "path": "https://chris.mutel.org/", "role": "wrangler"},
171+
{"title": "ecoinvent association", "path": "https://ecoinvent.org/", "roles": ["author"]},
172+
{"title": "Chris Mutel", "path": "https://chris.mutel.org/", "roles": ["wrangler"]},
173173
],
174174
mapping_source=MappingConstants.ECOSPOLD2,
175175
mapping_target=MappingConstants.ECOSPOLD2,
@@ -279,8 +279,8 @@ def generate_biosphere_mapping(
279279
name=f"{source_db_name}-{target_db_name}",
280280
description=description,
281281
contributors=[
282-
{"title": "ecoinvent association", "path": "https://ecoinvent.org/", "role": "author"},
283-
{"title": "Chris Mutel", "path": "https://chris.mutel.org/", "role": "wrangler"},
282+
{"title": "ecoinvent association", "path": "https://ecoinvent.org/", "roles": ["author"]},
283+
{"title": "Chris Mutel", "path": "https://chris.mutel.org/", "roles": ["wrangler"]},
284284
],
285285
mapping_source=MappingConstants.ECOSPOLD2_BIO,
286286
mapping_target=MappingConstants.ECOSPOLD2_BIO,

0 commit comments

Comments
 (0)