Re: [bitbake-devel] [PATCH v2 7/9] layers.schema.json: Add examples property
"Yoann Congal" <[email protected]> Thu, 28 May 2026 13:04:42 +0200
| Newsgroups | org.openembedded.lists.bitbake-devel |
|---|---|
| Message-ID | <[email protected]> |
On Tue Apr 7, 2026 at 5:02 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]> > --- > 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 8bc74a533..5c715f08e 100644 > --- a/setup-schema/layers.schema.json > +++ b/setup-schema/layers.schema.json > @@ -1,6 +1,25 @@ > { > "$schema": "https://json-schema.org/draft/2020-12/schema", > "description": "OpenEmbedder Layer Setup Manifest", > + "examples" : [ > + { > + "version": "1.0", Can you put the "version" key at the end? (Like we do in https://git.openembedded.org/bitbake/tree/default-registry/) > + "sources": { > + "bitbake": { > + "git-remote": { > + "remotes": { > + "origin": { > + "uri": "https://git.openembedded.org/bitbake" > + } > + }, > + "branch": "master", > + "rev": "master" > + }, > + "path": "bitbake" > + } Maybe use the short form here? "sources": { "bitbake": { "git-remote": { "uri": "https://git.openembedded.org/bitbake" "rev": "master" } } } > + } > + } > + ], > "title": "bitbake-setup layer subschema", > "type": "object", > "additionalProperties": false, -- Yoann Congal Smile ECS