Skip to content

Commit

Permalink
names: allow to add the acronym
Browse files Browse the repository at this point in the history
  • Loading branch information
jrcastro2 committed Dec 13, 2024
1 parent 412e70c commit e2a7edc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion invenio_vocabularies/contrib/names/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from functools import partial

from invenio_i18n import lazy_gettext as _
from marshmallow import ValidationError, fields, post_dump, post_load, validates_schema
from marshmallow import ValidationError, fields, post_dump, post_load, validates_schema, EXCLUDE
from marshmallow_utils.fields import IdentifierSet, SanitizedUnicode
from marshmallow_utils.schemas import IdentifierSchema

Expand All @@ -27,6 +27,11 @@ class AffiliationRelationSchema(BaseAffiliationRelationSchema):

acronym = SanitizedUnicode(dump_only=True)

class Meta:
"""Meta class."""

unknown = EXCLUDE


class NameSchema(BaseVocabularySchema, ModePIDFieldVocabularyMixin):
"""Service schema for names.
Expand Down

0 comments on commit e2a7edc

Please sign in to comment.