Skip to content

Commit d426208

Browse files
Update customize_schema.py
1 parent ff8d20a commit d426208

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

caltechdata_api/customize_schema.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -539,11 +539,11 @@ def validate_metadata(json_record):
539539
errors.append(
540540
"Each organizational 'contributor' must have 'name'."
541541
)
542-
# else:
543-
# if "familyName" not in contributor:
544-
# errors.append(
545-
# "Each 'contributor' must have a 'familyName' or have type Organizational"
546-
# )
542+
else:
543+
if "familyName" not in contributor:
544+
errors.append(
545+
"Each 'contributor' must have a 'familyName' or have type Organizational"
546+
)
547547
if "affiliation" in contributor:
548548
if not isinstance(contributor["affiliation"], list):
549549
errors.append(

0 commit comments

Comments
 (0)