File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -505,14 +505,9 @@ def validate_metadata(json_record):
505505 if not isinstance (creator , dict ):
506506 errors .append ("Each 'creator' must be a dictionry" )
507507 if "nameType" in creator :
508- if creator ["nameType" ] == "Organizational" :
509- if "name" not in creator :
510- errors .append ("Each organizational 'creator' must have 'name'." )
511- else :
508+ if creator ["nameType" ] != "Organizational" :
512509 if "familyName" not in creator :
513- errors .append (
514- "Each 'creator' must have a 'familyName' or have type Organizational"
515- )
510+ errors .append ("Each 'creator' must have a 'familyName' or have type 'Organizational'." )
516511 if "affiliation" in creator :
517512 if not isinstance (creator ["affiliation" ], list ):
518513 errors .append ("'affiliation' in 'creators' should be a list." )
You can’t perform that action at this time.
0 commit comments