Skip to content

Commit

Permalink
schema: updated schemeUri in name identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
Fatimah committed Apr 8, 2024
1 parent c3e15b6 commit 5f4788f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion invenio_rdm_records/resources/serializers/datacite/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,9 @@ def get_name_identifiers(self, obj):
name_id = {
"nameIdentifier": identifier["identifier"],
"nameIdentifierScheme": id_scheme,
"schemeUri": scheme_uri,
}
if scheme_uri:
name_id["schemeUri"] = scheme_uri

serialized_identifiers.append(name_id)

Expand Down
1 change: 0 additions & 1 deletion tests/resources/serializers/test_datacite_serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,6 @@ def test_datacite43_serializer_with_unknown_id_schemes(
expected_creator_id = {
"nameIdentifier": "unknown-2345",
"nameIdentifierScheme": "unknown-scheme",
"schemeUri": "",
}

serializer = DataCite43JSONSerializer()
Expand Down

0 comments on commit 5f4788f

Please sign in to comment.