sul-dlss / cocina-models

Cocina repository data model (implemented in Ruby)
https://sul-dlss.github.io/cocina-models/
3 stars 0 forks source link

add validator for contributor: no roles without name #610

Open ndushay opened 1 year ago

ndushay commented 1 year ago

implied by ticket sul-dlss/argo/issues/4071: "The presence of contributor role metadata without a contributor name in the Cocina leads to errors when trying to publish the druid. Fixing such errors is a complex remediation task."

a contributor with a role code and/or role value should not be allowed without also having a name, an identifier, a note (or a valueAt?)

See also sul-dlss/dor-services-app/issues/4522 which indicates when a contributor property has a value:

"only count value if direct children properties of name, note, or identifier have value per DescriptiveBasicValue"

for DescriptiveBasicValue: