Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
b7c6a6c
Update bot.yaml
RohanBhattaraiNP Feb 7, 2025
241cd56
Update bot.yaml
RohanBhattaraiNP Feb 7, 2025
69f3a6e
Update cli.py
RohanBhattaraiNP Feb 7, 2025
17041d7
Update customize_schema.py
RohanBhattaraiNP Feb 7, 2025
d937dbd
Update bot_yaml.py
RohanBhattaraiNP Feb 7, 2025
7d6afcf
Update test_rdm.py
RohanBhattaraiNP Feb 7, 2025
9916a90
Update test_rdm.py
RohanBhattaraiNP Feb 7, 2025
a040571
Update cli.py
RohanBhattaraiNP Feb 7, 2025
db96fe9
Update customize_schema.py
RohanBhattaraiNP Feb 7, 2025
186e68c
Update bot.yaml
RohanBhattaraiNP Feb 7, 2025
aef0492
Update bot_yaml.py
RohanBhattaraiNP Feb 7, 2025
36a349b
Update customize_schema.py
RohanBhattaraiNP Feb 7, 2025
ff8d20a
Update bot.yaml
RohanBhattaraiNP Feb 7, 2025
d426208
Update customize_schema.py
RohanBhattaraiNP Feb 7, 2025
a80ea5a
Update bot.yaml
RohanBhattaraiNP Feb 7, 2025
ec5f1b3
Update customize_schema.py
RohanBhattaraiNP Feb 7, 2025
c521bfe
Update bot.yaml
RohanBhattaraiNP Feb 7, 2025
57435f3
Update test_rdm.py
RohanBhattaraiNP Feb 7, 2025
1613945
Update bot.yaml
RohanBhattaraiNP Feb 7, 2025
104f7cc
Update bot.yaml
RohanBhattaraiNP Feb 7, 2025
d6540c6
Delete tests/data/datacite43 directory
RohanBhattaraiNP Mar 5, 2025
1ec63c0
Create h
RohanBhattaraiNP Mar 5, 2025
b0a5573
Add files via upload
RohanBhattaraiNP Mar 5, 2025
43b7d37
Delete tests/data/datacite43/h
RohanBhattaraiNP Mar 5, 2025
9bb732d
Update customize_schema.py
RohanBhattaraiNP Mar 5, 2025
98c3443
Update customize_schema.py
RohanBhattaraiNP Mar 5, 2025
72405ac
Update customize_schema.py
RohanBhattaraiNP Mar 5, 2025
e5df301
Update customize_schema.py
RohanBhattaraiNP Mar 5, 2025
e56ccf1
Update conftest.py
RohanBhattaraiNP Mar 5, 2025
9f06fc0
Update cli.py
RohanBhattaraiNP Mar 5, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions caltechdata_api/customize_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -505,14 +505,9 @@ def validate_metadata(json_record):
if not isinstance(creator, dict):
errors.append("Each 'creator' must be a dictionry")
if "nameType" in creator:
if creator["nameType"] == "Organizational":
if "name" not in creator:
errors.append("Each organizational 'creator' must have 'name'.")
else:
if creator["nameType"] != "Organizational":
if "familyName" not in creator:
errors.append(
"Each 'creator' must have a 'familyName' or have type Organizational"
)
errors.append("Each 'creator' must have a 'familyName' or have type 'Organizational'.")
if "affiliation" in creator:
if not isinstance(creator["affiliation"], list):
errors.append("'affiliation' in 'creators' should be a list.")
Expand Down