Skip to content

Commit

Permalink
schema: added identifiers in affiliations relation
Browse files Browse the repository at this point in the history
  • Loading branch information
0einstein0 authored and slint committed Dec 9, 2024
1 parent bb76080 commit 00c62eb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions invenio_vocabularies/contrib/affiliations/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,13 @@ class AffiliationRelationSchema(ContribVocabularyRelationSchema):
ftf_name = "name"
parent_field_name = "affiliations"
name = SanitizedUnicode()
identifiers = IdentifierSet(
fields.Nested(
partial(
IdentifierSchema,
allowed_schemes=affiliation_schemes,
identifier_required=False,
)
),
dump_only=True,
)

0 comments on commit 00c62eb

Please sign in to comment.