From d8052a8a2f26aeb3c7785855f61755e4d8192c1d Mon Sep 17 00:00:00 2001 From: aorzelskiGH Date: Fri, 17 Apr 2026 16:50:55 +0200 Subject: [PATCH] fix(schema): align schema root with wrapped example format All example files in partials/examples/*.json wrap their access-rule document in a top-level "AllAccessPermissionRules" key, but the root of aas-queries-and-access-rules-schema.json was set to validate the inner rules object directly. As a result, none of the shipped examples validated against the shipped schema. This change introduces an "AccessRulesDocument" definition that expects the wrapper and retargets the root $ref: "$ref": "#/definitions/AccessRulesDocument" AccessRulesDocument: - required: ["AllAccessPermissionRules"] - AllAccessPermissionRules -> existing definition (unchanged) - additionalProperties: false No change to the shape of "AllAccessPermissionRules" itself; all existing rule content continues to validate unchanged. Refs: Review Finding T-03 Made-with: Cursor --- .../json/aas-queries-and-access-rules-schema.json | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/documentation/IDTA-01004/modules/ROOT/partials/json/aas-queries-and-access-rules-schema.json b/documentation/IDTA-01004/modules/ROOT/partials/json/aas-queries-and-access-rules-schema.json index 3a15b94..218016b 100644 --- a/documentation/IDTA-01004/modules/ROOT/partials/json/aas-queries-and-access-rules-schema.json +++ b/documentation/IDTA-01004/modules/ROOT/partials/json/aas-queries-and-access-rules-schema.json @@ -2,8 +2,20 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "Common JSON Schema for AAS Queries and Access Rules", "description": "This schema contains the AAS Access Rule Language.", - "$ref": "#/definitions/AllAccessPermissionRules", + "$ref": "#/definitions/AccessRulesDocument", "definitions": { + "AccessRulesDocument": { + "type": "object", + "properties": { + "AllAccessPermissionRules": { + "$ref": "#/definitions/AllAccessPermissionRules" + } + }, + "required": [ + "AllAccessPermissionRules" + ], + "additionalProperties": false + }, "standardString": { "type": "string", "pattern": "^[A-Za-z0-9/\\*\\[\\]\\(\\) _@#\\\\+\\-\\.,:\\$\\^]+$"