We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff8d20a commit d426208Copy full SHA for d426208
caltechdata_api/customize_schema.py
@@ -539,11 +539,11 @@ def validate_metadata(json_record):
539
errors.append(
540
"Each organizational 'contributor' must have 'name'."
541
)
542
- # else:
543
- # if "familyName" not in contributor:
544
- # errors.append(
545
- # "Each 'contributor' must have a 'familyName' or have type Organizational"
546
- # )
+ else:
+ if "familyName" not in contributor:
+ errors.append(
+ "Each 'contributor' must have a 'familyName' or have type Organizational"
+ )
547
if "affiliation" in contributor:
548
if not isinstance(contributor["affiliation"], list):
549
0 commit comments