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 72405ac commit e5df301Copy full SHA for e5df301
caltechdata_api/customize_schema.py
@@ -508,11 +508,11 @@ def validate_metadata(json_record):
508
if creator["nameType"] == "Organizational":
509
if "name" not in creator:
510
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
- )
+ else:
+ if "familyName" not in creator:
+ errors.append(
+ "Each 'creator' must have a 'familyName' or have type Organizational"
+ )
516
if "affiliation" in creator:
517
if not isinstance(creator["affiliation"], list):
518
errors.append("'affiliation' in 'creators' should be a list.")
0 commit comments