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 committed Nov 28, 2024
1 parent 3a82d04 commit 3888c45
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions invenio_vocabularies/contrib/affiliations/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,12 @@ 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,
)
)
)

0 comments on commit 3888c45

Please sign in to comment.