Skip to content

Commit e5df301

Browse files
Update customize_schema.py
1 parent 72405ac commit e5df301

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
@@ -508,11 +508,11 @@ 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:
512-
if "familyName" not in creator:
513-
errors.append(
514-
"Each 'creator' must have a 'familyName' or have type Organizational"
515-
)
511+
else:
512+
if "familyName" not in creator:
513+
errors.append(
514+
"Each 'creator' must have a 'familyName' or have type Organizational"
515+
)
516516
if "affiliation" in creator:
517517
if not isinstance(creator["affiliation"], list):
518518
errors.append("'affiliation' in 'creators' should be a list.")

0 commit comments

Comments
 (0)