Re: [bitbake-devel] [PATCH v3 07/10] layers.schema.json: Add examples property

"Yoann Congal" <[email protected]> Thu, 18 Jun 2026 12:27:42 +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:
> This resolves the jsonschema linting error:
>     Set a non-empty examples array at the top level of the schema
>     to illustrate the expected data (top_level_examples)
>
> This example intentionally only references bitbake as a minimal
> example that focuses on the tool itself.
>
> Signed-off-by: Rob Woolley <[email protected]>
> ---

This is the same as v2 I reviewed here:
https://lore.kernel.org/bitbake-devel/[email protected]/
My remarks still apply.

>  setup-schema/layers.schema.json | 19 +++++++++++++++++++
>  1 file changed, 19 insertions(+)
>
> diff --git a/setup-schema/layers.schema.json b/setup-schema/layers.schema.json
> index afeac1869..e75380be8 100644
> --- a/setup-schema/layers.schema.json
> +++ b/setup-schema/layers.schema.json
> @@ -2,6 +2,25 @@
>      "$schema": "https://json-schema.org/draft/2020-12/schema",
>      "description": "A schema for a manifest of layers to setup",
>      "title": "OpenEmbedded Layer Setup Schema",
> +    "examples" : [
> +        {
> +            "version": "1.0",
> +            "sources": {
> +                "bitbake": {
> +                    "git-remote": {
> +                        "remotes": {
> +                            "origin": {
> +                                "uri": "https://git.openembedded.org/bitbake"
> +                            }
> +                        },
> +                        "branch": "master",
> +                        "rev": "master"
> +                    },
> +                    "path": "bitbake"
> +                }
> +            }
> +        }
> +    ],
>      "type": "object",
>      "additionalProperties": false,
>      "required": [


-- 
Yoann Congal
Smile ECS