diff mbox series

[v2,6/9] layers.schema.json: Add title for subschema

Message ID 20260407150250.104135-7-rob.woolley@windriver.com
State Accepted, archived
Commit 6a937facb81063db93b668c2569e9e3541dec81b
Headers show
Series bitbake-setup JSON Schema: Fix linting errors | expand

Commit Message

Rob Woolley April 7, 2026, 3:02 p.m. UTC
Resolves the jsonschema linting error:
  Set a concise non-empty title at the top level of the schema to
  explain what the definition is about (top_level_title)

Signed-off-by: Rob Woolley <rob.woolley@windriver.com>
---
 setup-schema/layers.schema.json | 1 +
 1 file changed, 1 insertion(+)

Comments

Yoann Congal May 28, 2026, 10:58 a.m. UTC | #1
On Tue Apr 7, 2026 at 5:02 PM CEST, Rob Woolley via lists.openembedded.org wrote:
> Resolves the jsonschema linting error:
>   Set a concise non-empty title at the top level of the schema to
>   explain what the definition is about (top_level_title)
>
> Signed-off-by: Rob Woolley <rob.woolley@windriver.com>
> ---
>  setup-schema/layers.schema.json | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/setup-schema/layers.schema.json b/setup-schema/layers.schema.json
> index 2c192c8b0..8bc74a533 100644
> --- a/setup-schema/layers.schema.json
> +++ b/setup-schema/layers.schema.json
> @@ -1,6 +1,7 @@
>  {
>      "$schema": "https://json-schema.org/draft/2020-12/schema",
>      "description": "OpenEmbedder Layer Setup Manifest",
Just noticed a OpenEmbedde*r* typo here. Could you also fix it in this
series?

> +    "title": "bitbake-setup layer subschema",

This is not only a bb-setup subschema, this schema is valid in itself
for files used in:
* openembedded-core/scripts/oe-setup-layers
* bitbake-layers create-layers-setup

For the title, something like "OpenEmbedded layer setup schema"? But
then, it's a little too similar to the description. So maybe the
description should be extended?

>      "type": "object",
>      "additionalProperties": false,
>      "required": [
diff mbox series

Patch

diff --git a/setup-schema/layers.schema.json b/setup-schema/layers.schema.json
index 2c192c8b0..8bc74a533 100644
--- a/setup-schema/layers.schema.json
+++ b/setup-schema/layers.schema.json
@@ -1,6 +1,7 @@ 
 {
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "description": "OpenEmbedder Layer Setup Manifest",
+    "title": "bitbake-setup layer subschema",
     "type": "object",
     "additionalProperties": false,
     "required": [