From 1934cf9b89c88accabf334b3f7df2de95002cf71 Mon Sep 17 00:00:00 2001 From: Sebastian Frank Date: Thu, 1 Oct 2026 00:17:33 +0000 Subject: [PATCH] =?UTF-8?q?feat(schema):=20neues=20Section-Format=20?= =?UTF-8?q?=E2=80=94=20position:=20"section:"=20+=20meta.sections?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Feld-Meta position erlaubt jetzt section und section: neben main/sidebar. Collection-Meta bekommt sections: [{ group, label, collapsible, collapsed }] als Pendant zu sidebar. Ohne das Pattern-Update schlaegt die YAML-Validierung im Editor fehl und position: "section:x" wird als ungueltig markiert. Co-Authored-By: Claude Opus 4.8 (1M context) --- schemas/config/collection-meta.schema.json | 24 ++++++++++++++++++++++ schemas/config/field-meta.schema.json | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/schemas/config/collection-meta.schema.json b/schemas/config/collection-meta.schema.json index 165af80..eb986d4 100644 --- a/schemas/config/collection-meta.schema.json +++ b/schemas/config/collection-meta.schema.json @@ -438,6 +438,30 @@ ] } }, + "sections": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": false, + "properties": { + "group": { + "type": "string" + }, + "label": { + "$ref": "defs.schema.json#/definitions/i18nText" + }, + "collapsible": { + "type": "boolean" + }, + "collapsed": { + "type": "boolean" + } + }, + "required": [ + "group" + ] + } + }, "openapi": { "$ref": "openapi.schema.json" } diff --git a/schemas/config/field-meta.schema.json b/schemas/config/field-meta.schema.json index c54db19..5704600 100644 --- a/schemas/config/field-meta.schema.json +++ b/schemas/config/field-meta.schema.json @@ -58,7 +58,7 @@ }, "position": { "type": "string", - "pattern": "^(main|sidebar|sidebar:.+)$" + "pattern": "^(main|sidebar|section|sidebar:.+|section:.+)$" }, "section": { "$ref": "defs.schema.json#/definitions/i18nText"