Skip to content

Commit db96fe9

Browse files
Update customize_schema.py
1 parent a040571 commit db96fe9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

caltechdata_api/customize_schema.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ def validate_metadata(json_record):
508508
if creator["nameType"] == "Organizational":
509509
if "name" not in creator:
510510
errors.append("Each organizational 'creator' must have 'name'.")
511-
#else:
511+
# else:
512512
# if "familyName" not in creator:
513513
# errors.append(
514514
# "Each 'creator' must have a 'familyName' or have type Organizational"
@@ -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)