On 21/07/2026 19:33, Andrea Pinski wrote:
> Some semi-older distros don't have a new enough jsonscheme
> installed. So this moves the scheme to the older json scheme
> rather than using the 2020 one.
>
> PR testsuite/126162
> contrib/ChangeLog:
>
> * maintainer_utils.py: Move to the older scheme which
> is valid for MAINTAINERS.yml.
>
> Signed-off-by: Andrea Pinski <[email protected]>
> Co-authored-by: Arsen Arsenović <[email protected]>
OK
R.> ---
> contrib/maintainer_utils.py | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/contrib/maintainer_utils.py b/contrib/maintainer_utils.py
> index c4d6c8da073..9fc636d8b56 100755
> --- a/contrib/maintainer_utils.py
> +++ b/contrib/maintainer_utils.py
> @@ -37,7 +37,7 @@ except:
> label_pattern = '[a-zA-Z][-+a-zA-Z0-9]*(/[a-zA-Z][-+a-zA-Z0-9]*)+'
>
> maintainer_schema = {
> - '$schema': 'https://json-schema.org/draft/2020-12/schema',
> + '$schema': 'https://json-schema.org/draft-04/schema',
> 'type': 'object',
> 'properties': {
> 'users': {
> @@ -207,7 +207,7 @@ def _format_path(path, data):
>
> def _check_schema(data):
> try:
> - schema =
> jsonschema.validators.Draft202012Validator(maintainer_schema)
> + schema = jsonschema.validators.Draft4Validator(maintainer_schema)
> errors = sorted(schema.iter_errors(data), key=lambda e: e.path)
> for err in errors:
> _error(f"{_format_path(err.path, data)}: {err.message}")