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
@@ -178,6 +178,22 @@
""",
),
+ (
+ "codemeta-affiliation",
+ f"""\
+
+ some url
+ bar
+
+ someone
+
+ My Orga
+
+
+ {PROVENANCE_XML}
+
+ """,
+ ),
(
"swh:add_to_origin",
f"""\
@@ -379,6 +395,26 @@
},
],
),
+ (
+ "chardata-in-affiliation",
+ f"""\
+
+ some url
+ bar
+
+ someone
+ My Orga
+
+ {PROVENANCE_XML}
+
+ """,
+ [
+ {
+ "summary": ".*Reason: character data between child elements.*",
+ "fields": ["codemeta:author"],
+ },
+ ],
+ ),
(
"chardata-in-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
@@ -32,5 +32,10 @@
+
+
+