names: add props #1528
Annotations
2 errors
Run tests:
invenio_vocabularies/contrib/names/schema.py#L1
Black format check
--- /home/runner/work/invenio-vocabularies/invenio-vocabularies/invenio_vocabularies/contrib/names/schema.py 2024-09-19 13:24:59.198593+00:00
+++ /home/runner/work/invenio-vocabularies/invenio-vocabularies/invenio_vocabularies/contrib/names/schema.py 2024-09-19 13:30:34.637142+00:00
@@ -41,11 +41,10 @@
)
)
)
affiliations = fields.List(fields.Nested(AffiliationRelationSchema))
props = fields.Dict(keys=fields.Str(), values=fields.Raw())
-
@validates_schema
def validate_names(self, data, **kwargs):
"""Validate names."""
can_compose = data.get("family_name") and data.get("given_name")
|
Run tests
Process completed with exit code 1.
|
Loading