{"record":{"id":"34bc6d2f191f0b10","repo":"github/github-mcp-server","slug":"invalid-layout-q-must-be-table-board-o","errorCode":null,"errorMessage":"invalid layout %q: must be \\\"table\\\", \\\"board\\\", or \\\"roadmap\\\"","messagePattern":"invalid layout %q: must be \\\\\"table\\\\\", \\\\\"board\\\\\", or \\\\\"roadmap\\\\\"","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/github/projects.go","lineNumber":1929,"sourceCode":"\tcase githubv4.ProjectV2ViewLayoutBoardLayout:\n\t\treturn \"board\"\n\tcase githubv4.ProjectV2ViewLayoutRoadmapLayout:\n\t\treturn \"roadmap\"\n\tdefault:\n\t\treturn strings.ToLower(strings.TrimSuffix(string(layout), \"_LAYOUT\"))\n\t}\n}\n\nfunc parseProjectViewLayout(layout string) (githubv4.ProjectV2ViewLayout, error) {\n\tswitch strings.ToLower(strings.TrimSpace(layout)) {\n\tcase \"table\":\n\t\treturn githubv4.ProjectV2ViewLayoutTableLayout, nil\n\tcase \"board\":\n\t\treturn githubv4.ProjectV2ViewLayoutBoardLayout, nil\n\tcase \"roadmap\":\n\t\treturn githubv4.ProjectV2ViewLayoutRoadmapLayout, nil\n\tdefault:\n\t\treturn \"\", fmt.Errorf(\"invalid layout %q: must be \\\"table\\\", \\\"board\\\", or \\\"roadmap\\\"\", layout)\n\t}\n}\n\nfunc listProjectViews(ctx context.Context, gqlClient *githubv4.Client, args map[string]any, owner, ownerType string) (*mcp.CallToolResult, bool, any, error) {\n\tif ownerType != \"user\" && ownerType != \"org\" {\n\t\treturn utils.NewToolResultError(fmt.Sprintf(\"invalid owner_type %q: must be \\\"user\\\" or \\\"org\\\"\", ownerType)), false, nil, nil\n\t}\n\n\tprojectNumber, err := RequiredInt(args, \"project_number\")\n\tif err != nil {\n\t\treturn utils.NewToolResultError(err.Error()), false, nil, nil\n\t}\n\tperPage, err := OptionalIntParamWithDefault(args, \"per_page\", MaxProjectsPerPage)\n\tif err != nil {\n\t\treturn utils.NewToolResultError(err.Error()), false, nil, nil\n\t}\n\tif perPage < 1 || perPage > MaxProjectsPerPage {\n\t\tperPage = MaxProjectsPerPage","sourceCodeStart":1911,"sourceCodeEnd":1947,"githubUrl":"https://github.com/github/github-mcp-server/blob/0ea1f775a7c73eff1bd2e25904d01136756bbfe2/pkg/github/projects.go#L1911-L1947","documentation":"Error \"invalid layout %q: must be \\\"table\\\", \\\"board\\\", or \\\"roadmap\\\"\" thrown in github/github-mcp-server.","triggerScenarios":"Thrown at pkg/github/projects.go:1929 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0ea1f775a7c73eff1bd2e25904d01136756bbfe2","analyzedAt":"2026-08-15T18:10:19.804Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}