Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: inveniosoftware/invenio-vocabularies
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 9309ffef8a811e943f29fb5fba034ee394c6d1e0
Choose a base ref
..
head repository: inveniosoftware/invenio-vocabularies
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 4cc43d588a6467f5200275a57901c86f6e8333ad
Choose a head ref
Showing with 8 additions and 6 deletions.
  1. +1 −4 invenio_vocabularies/contrib/names/jsonschemas/names/name-v1.0.0.json
  2. +7 −2 invenio_vocabularies/contrib/names/schema.py
Original file line number Diff line number Diff line change
@@ -59,10 +59,7 @@
},
"name": {
"type": "string"
},
"acronym": {
"type": "string"
}
}
}
},
"uniqueItems": true
9 changes: 7 additions & 2 deletions invenio_vocabularies/contrib/names/schema.py
Original file line number Diff line number Diff line change
@@ -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

@@ -25,7 +25,12 @@
class AffiliationRelationSchema(BaseAffiliationRelationSchema):
"""Affiliation relation schema."""

acronym = SanitizedUnicode()
acronym = SanitizedUnicode(dump_only=True)

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

unknown = EXCLUDE


class NameSchema(BaseVocabularySchema, ModePIDFieldVocabularyMixin):