mirror of
https://github.com/google-gemini/gemini-cli
synced 2026-05-24 09:38:34 +00:00
fix: Add $schema property to settings.schema.json (#12763)
Co-authored-by: cornmander <shikhman@google.com>
This commit is contained in:
parent
404a4468d8
commit
2b41263aa7
2 changed files with 14 additions and 0 deletions
|
|
@ -6,6 +6,12 @@
|
|||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"$schema": {
|
||||
"title": "Schema",
|
||||
"description": "The URL of the JSON schema for this settings file. Used by editors for validation and autocompletion.",
|
||||
"type": "string",
|
||||
"default": "https://raw.githubusercontent.com/google-gemini/gemini-cli/main/schemas/settings.schema.json"
|
||||
},
|
||||
"mcpServers": {
|
||||
"title": "MCP Servers",
|
||||
"description": "Configuration for MCP servers.",
|
||||
|
|
|
|||
|
|
@ -120,6 +120,14 @@ function buildSchemaObject(schema: SettingsSchemaType): JsonSchema {
|
|||
properties: {},
|
||||
};
|
||||
|
||||
root.properties!['$schema'] = {
|
||||
title: 'Schema',
|
||||
description:
|
||||
'The URL of the JSON schema for this settings file. Used by editors for validation and autocompletion.',
|
||||
type: 'string',
|
||||
default: SCHEMA_ID,
|
||||
};
|
||||
|
||||
for (const [key, definition] of Object.entries(schema)) {
|
||||
root.properties![key] = buildSettingSchema(definition, [key], defs);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue