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 @@ -80,6 +80,34 @@ some url bar + someone + should allow anything here + + {PROVENANCE_XML} + + """, + ), + ( + f"""\ + + some url + bar + + should allow anything here + someone + + {PROVENANCE_XML} + + """, + ), + ( + f"""\ + + some url + bar + + should allow anything here + someone should allow anything here {PROVENANCE_XML} @@ -334,6 +362,24 @@ }, ], ), + ( + f"""\ + + some url + bar + + should allow anything here + + {PROVENANCE_XML} + + """, + [ + { + "summary": ".*Tag '?codemeta:name'? expected.*", + "fields": ["codemeta:author"], + }, + ], + ), ( 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 @@ -23,11 +23,13 @@ - - + + - - + +