[PATCH v4 2/9] bitbake-setup.schema.json: Add examples property
Rob Woolley <[email protected]> Fri, 19 Jun 2026 10:39:28 -0700
| Newsgroups | org.openembedded.lists.bitbake-devel |
|---|---|
| Message-ID | <[email protected]> |
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 is for a development build of OpenEmbedded targeting
a qemux86-64 machine without a defined distro.
Reviewed-by: Yoann Congal <[email protected]>
Signed-off-by: Rob Woolley <[email protected]>
---
setup-schema/bitbake-setup.schema.json | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/setup-schema/bitbake-setup.schema.json b/setup-schema/bitbake-setup.schema.json
index 309088348..1830d16df 100644
--- a/setup-schema/bitbake-setup.schema.json
+++ b/setup-schema/bitbake-setup.schema.json
@@ -1,6 +1,39 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"description": "Schema for bitbake-setup configuration files",
+ "examples" : [
+ {
+ "description": "Example bitbake-setup configuration file",
+ "sources": {
+ "bitbake": {
+ "git-remote": {
+ "uri": "https://git.openembedded.org/bitbake",
+ "rev": "master"
+ },
+ "path": "bitbake"
+ },
+ "openembedded-core": {
+ "git-remote": {
+ "uri": "https://git.openembedded.org/openembedded-core",
+ "rev": "master"
+ },
+ "path": "openembedded-core"
+ }
+ },
+ "bitbake-setup": {
+ "configurations": [
+ {
+ "name" : "qemux86-64-nodistro",
+ "description": "OpenEmbedded 'nodistro' build for qemux86-64",
+ "setup-dir-name": "oe-nodistro-master",
+ "bb-layers": ["openembedded-core/meta"],
+ "oe-fragments": ["machine/qemux86-64"]
+ }
+ ]
+ },
+ "version": "1.0"
+ }
+ ],
"title": "bitbake-setup configuration file",
"type": "object",
"required": [
--
2.49.0