From 3872f67990a68412b206633e61affc16732ef0df Mon Sep 17 00:00:00 2001 From: rekram1-node Date: Fri, 22 Aug 2025 16:17:29 -0500 Subject: [PATCH] ignore: update json schema to show comments & commas are okay in lsp feedback --- packages/opencode/script/schema.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/opencode/script/schema.ts b/packages/opencode/script/schema.ts index c815c7324..27450fd34 100755 --- a/packages/opencode/script/schema.ts +++ b/packages/opencode/script/schema.ts @@ -32,5 +32,13 @@ const result = zodToJsonSchema(Config.Info, { return jsonSchema }, -}) +}) as Record & { + allowComments?: boolean + allowTrailingCommas?: boolean +} + +// used for json lsps since config supports jsonc +result.allowComments = true +result.allowTrailingCommas = true + await Bun.write(file, JSON.stringify(result, null, 2))