Add support for retrieving wiki page content in list_wiki_pages (#82)

Co-authored-by: Vince Liao <vince.liao@nextbank.com.tw>
This commit is contained in:
Vince
2025-06-03 18:33:36 +08:00
committed by GitHub
parent 93710f2846
commit 5e254836e8
2 changed files with 11 additions and 4 deletions

View File

@ -1197,7 +1197,9 @@ export const ListGroupProjectsSchema = z.object({
// Add wiki operation schemas
export const ListWikiPagesSchema = z.object({
project_id: z.string().describe("Project ID or URL-encoded path"),
with_content: z.boolean().optional().describe("Include content of the wiki pages"),
}).merge(PaginationOptionsSchema);
export const GetWikiPageSchema = z.object({
project_id: z.string().describe("Project ID or URL-encoded path"),
slug: z.string().describe("URL-encoded slug of the wiki page"),
@ -1226,7 +1228,7 @@ export const GitLabWikiPageSchema = z.object({
title: z.string(),
slug: z.string(),
format: z.string(),
content: z.string(),
content: z.string().optional(),
created_at: z.string().optional(),
updated_at: z.string().optional(),
});