Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix acronym #454

Merged
merged 2 commits into from
Dec 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
Changes
=======

Version v6.11.0 (released 2024-12-13)

- names: fix acronym in marshamllow schema

Version v6.10.1 (released 2024-12-12)

- names: drop unique id on the internal id
Expand Down
2 changes: 1 addition & 1 deletion invenio_vocabularies/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@

from .ext import InvenioVocabularies

__version__ = "6.10.1"
__version__ = "6.11.0"

__all__ = ("__version__", "InvenioVocabularies")
14 changes: 13 additions & 1 deletion invenio_vocabularies/contrib/names/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,14 @@
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 (
EXCLUDE,
ValidationError,
fields,
post_dump,
post_load,
validates_schema,
)
from marshmallow_utils.fields import IdentifierSet, SanitizedUnicode
from marshmallow_utils.schemas import IdentifierSchema

Expand All @@ -27,6 +34,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