Skip to content

Commit

Permalink
names: add props
Browse files Browse the repository at this point in the history
  • Loading branch information
jrcastro2 committed Sep 4, 2024
1 parent cf8243c commit cb88ac2
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@
"items": {"$ref": "local://definitions-v1.0.0.json#/identifiers_with_scheme"},
"uniqueItems": true
},
"props": {
"type": "object",
"patternProperties": {
"^.*$": {
"type": "string"
}
}
},
"affiliations": {
"description": "Affiliations of the person.",
"type": "array",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@
"type": "keyword"
}
}
},
"props": {
"type": "object",
"dynamic": "true"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@
"type": "keyword"
}
}
},
"props": {
"type": "object",
"dynamic": "true"
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions invenio_vocabularies/contrib/names/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ class NameSchema(BaseVocabularySchema, ModePIDFieldVocabularyMixin):
)
)
affiliations = fields.List(fields.Nested(AffiliationRelationSchema))
props = fields.Dict(keys=fields.Str(), values=fields.Raw())


@validates_schema
def validate_names(self, data, **kwargs):
Expand Down

0 comments on commit cb88ac2

Please sign in to comment.