Re: [bitbake-devel] [PATCH v3 10/10] bitbake-setup.schema.json: Use anyOf for non-disjoint subschemas

"Yoann Congal" <[email protected]> Thu, 18 Jun 2026 12:32:01 +0200
Newsgroups org.openembedded.lists.bitbake-devel
Message-ID <[email protected]>
On Mon Jun 15, 2026 at 7:37 PM CEST, Rob Woolley via lists.openembedded.org wrote:
> The oneOf keyword is for matching exactly one subschema.
> However, the branches have disjoint types so it can be safely
> converted to anyOf.
>
> This resolves the following jsonschema linting error:
>   A `oneOf` where all branches have disjoint types can be safely
>   converted to `anyOf` (oneof_to_anyof_disjoint_types)
>
> Signed-off-by: Rob Woolley <[email protected]>

This look confusingly similar to 3/10.

Either make the title more precise or merge the 2 in 3/10 (I'd do the
latter).

Thanks!

> ---
>  setup-schema/bitbake-setup.schema.json | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/setup-schema/bitbake-setup.schema.json b/setup-schema/bitbake-setup.schema.json
> index b724dbadc..177a8dc8c 100644
> --- a/setup-schema/bitbake-setup.schema.json
> +++ b/setup-schema/bitbake-setup.schema.json
> @@ -76,7 +76,7 @@
>                                  "description": "Human-readable description of the configuration"
>                              },
>                              "notes": {
> -                                "oneOf": [
> +                                "anyOf": [
>                                      {
>                                          "type": "string"
>                                      },


-- 
Yoann Congal
Smile ECS