From c242e5693be727486e5654557318d4d2e07f36f8 Mon Sep 17 00:00:00 2001 From: Seongmin Lee Date: Wed, 15 Apr 2026 12:54:32 +0900 Subject: [PATCH] lexicons: cleanup `git.listLanguages` xrpc response schema Signed-off-by: Seongmin Lee --- api/tangled/templistLanguages.go | 12 ++---------- lexicons/git/temp/listLanguages.json | 23 ++--------------------- 2 files changed, 4 insertions(+), 31 deletions(-) diff --git a/api/tangled/templistLanguages.go b/api/tangled/templistLanguages.go index 0fa7396f..03200aa8 100644 --- a/api/tangled/templistLanguages.go +++ b/api/tangled/templistLanguages.go @@ -16,12 +16,6 @@ const ( // GitTempListLanguages_Language is a "language" in the sh.tangled.git.temp.listLanguages schema. type GitTempListLanguages_Language struct { - // color: Hex color code for this language - Color *string `json:"color,omitempty" cborgen:"color,omitempty"` - // extensions: File extensions associated with this language - Extensions []string `json:"extensions,omitempty" cborgen:"extensions,omitempty"` - // fileCount: Number of files in this language - FileCount *int64 `json:"fileCount,omitempty" cborgen:"fileCount,omitempty"` // name: Programming language name Name string `json:"name" cborgen:"name"` // percentage: Percentage of total codebase (0-100) @@ -35,10 +29,8 @@ type GitTempListLanguages_Output struct { Languages []*GitTempListLanguages_Language `json:"languages" cborgen:"languages"` // ref: The git reference used Ref string `json:"ref" cborgen:"ref"` - // totalFiles: Total number of files analyzed - TotalFiles *int64 `json:"totalFiles,omitempty" cborgen:"totalFiles,omitempty"` - // totalSize: Total size of all analyzed files in bytes - TotalSize *int64 `json:"totalSize,omitempty" cborgen:"totalSize,omitempty"` + // total: Total size of all analyzed files in bytes + Total int64 `json:"total" cborgen:"total"` } // GitTempListLanguages calls the XRPC method "sh.tangled.git.temp.listLanguages". diff --git a/lexicons/git/temp/listLanguages.json b/lexicons/git/temp/listLanguages.json index ec3c8566..fcfc0e42 100644 --- a/lexicons/git/temp/listLanguages.json +++ b/lexicons/git/temp/listLanguages.json @@ -24,7 +24,7 @@ "encoding": "application/json", "schema": { "type": "object", - "required": ["ref", "languages"], + "required": ["ref", "languages", "total"], "properties": { "ref": { "type": "string", @@ -37,13 +37,9 @@ "ref": "#language" } }, - "totalSize": { + "total": { "type": "integer", "description": "Total size of all analyzed files in bytes" - }, - "totalFiles": { - "type": "integer", - "description": "Total number of files analyzed" } } } @@ -78,21 +74,6 @@ "percentage": { "type": "integer", "description": "Percentage of total codebase (0-100)" - }, - "fileCount": { - "type": "integer", - "description": "Number of files in this language" - }, - "color": { - "type": "string", - "description": "Hex color code for this language" - }, - "extensions": { - "type": "array", - "items": { - "type": "string" - }, - "description": "File extensions associated with this language" } } } -- 2.51.2