https://gcc.gnu.org/g:d6bac80f3ddd4975de9bc8bf1c1e07e7a5579009
commit r17-3875-gd6bac80f3ddd4975de9bc8bf1c1e07e7a5579009 Author: Richard Earnshaw <[email protected]> Date: Thu Aug 20 15:03:29 2026 +0100 maintainer_utils: more array size verification. There always needs to be one email address associated with a user and the inactive_emails and aliases entries should be omitted if empty, so set the minimum size of all three to 1. contrib/ChangeLog: * maintainer_utils.py (maintainer_schema): Set the minimum array size to 1 for email, inactive_email and aliases. Diff: --- contrib/maintainer_utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contrib/maintainer_utils.py b/contrib/maintainer_utils.py index 462d7d44e71e..554beff09ff7 100755 --- a/contrib/maintainer_utils.py +++ b/contrib/maintainer_utils.py @@ -59,6 +59,7 @@ maintainer_schema = { 'type': 'string', 'format': 'email', }, + 'minItems': 1, }, 'inactive_email': { 'type': 'array', @@ -66,6 +67,7 @@ maintainer_schema = { 'type': 'string', 'format': 'email', }, + 'minItems': 1, }, 'DCO': { 'type': 'array', @@ -136,11 +138,11 @@ maintainer_schema = { }, 'aliases': { 'type': 'array', - 'minLength': 1, 'items': { 'type': 'string', 'minLength': 1, }, + 'minItems': 1, }, 'inactive': { 'type': 'boolean',
