diff --git a/packages/opencode/script/schema.ts b/packages/opencode/script/schema.ts index c815c732..27450fd3 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))