diff --git a/swh/deposit/tests/api/test_checks.py b/swh/deposit/tests/api/test_checks.py --- a/swh/deposit/tests/api/test_checks.py +++ b/swh/deposit/tests/api/test_checks.py @@ -179,6 +179,20 @@ """, ), + ( + "author-two-names", + f"""\ + + some url + bar + + someone + an alias + + {PROVENANCE_XML} + + """, + ), ( "codemeta-affiliation", f"""\ @@ -275,6 +289,18 @@ University 2 + + A Maintainer + + University 3 + + + + University 3 + + + A Maintainer + something something else http://example.org/ @@ -513,6 +539,28 @@ }, ], ), + ( + "maintainer-with-no-name", + f"""\ + + some url + bar + + should allow anything here + + + abc + + {PROVENANCE_XML} + + """, + [ + { + "summary": ".*Tag '?codemeta:name'? expected.*", + "fields": ["codemeta:maintainer"], + }, + ], + ), ( "id-is-not-url", f"""\ diff --git a/swh/deposit/xsd/codemeta.xsd b/swh/deposit/xsd/codemeta.xsd --- a/swh/deposit/xsd/codemeta.xsd +++ b/swh/deposit/xsd/codemeta.xsd @@ -20,10 +20,11 @@ - - - - + + + + +