From 533a07fda3fa9257fc86970004ec035c33049862 Mon Sep 17 00:00:00 2001 From: Garv Sanveria Date: Wed, 30 Sep 2026 23:43:52 +0530 Subject: [PATCH 1/2] docs: add JSDoc for getScopesOfParsedJsonSchema --- lib/getScopesOfParsedJsonSchema.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/getScopesOfParsedJsonSchema.ts b/lib/getScopesOfParsedJsonSchema.ts index 185272df8..ca983bfde 100644 --- a/lib/getScopesOfParsedJsonSchema.ts +++ b/lib/getScopesOfParsedJsonSchema.ts @@ -6,7 +6,15 @@ export type JsonSchemaPathWithScope = { jsonPath: string; scope: JsonSchemaScope; }; - +/** + * Recursively parses a JSON Schema to map JSON paths to their corresponding scope types. + * This is primarily used to bind interactive UI elements to specific schema definitions + * in the schema editor. + * + * @param parsedJsonSchema - The parsed JSON Schema object or sub-schema. + * @param jsonPath - The current JSON path prefix (defaults to the root '$'). + * @returns An array of objects mapping the calculated JSON paths to their scopes. + */ export default function getScopesOfParsedJsonSchema( parsedJsonSchema: any, jsonPath = '$', From 56bef88022f23e8b0466b2a781b5b220827738e2 Mon Sep 17 00:00:00 2001 From: Garv Sanveria Date: Thu, 1 Oct 2026 00:17:05 +0530 Subject: [PATCH 2/2] style: fix prettier spaces --- lib/getScopesOfParsedJsonSchema.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/getScopesOfParsedJsonSchema.ts b/lib/getScopesOfParsedJsonSchema.ts index ca983bfde..9bc6d60c6 100644 --- a/lib/getScopesOfParsedJsonSchema.ts +++ b/lib/getScopesOfParsedJsonSchema.ts @@ -10,7 +10,7 @@ export type JsonSchemaPathWithScope = { * Recursively parses a JSON Schema to map JSON paths to their corresponding scope types. * This is primarily used to bind interactive UI elements to specific schema definitions * in the schema editor. - * + * * @param parsedJsonSchema - The parsed JSON Schema object or sub-schema. * @param jsonPath - The current JSON path prefix (defaults to the root '$'). * @returns An array of objects mapping the calculated JSON paths to their scopes.