@@ -268,13 +268,13 @@ func OptionalBigIntArrayParam(args map[string]any, p string) ([]int64, error) {
268268// https://docs.github.com/en/rest/using-the-rest-api/using-pagination-in-the-rest-api
269269func WithPagination (schema * jsonschema.Schema )* jsonschema.Schema {
270270schema .Properties ["page" ]= & jsonschema.Schema {
271- Type :"Number " ,
271+ Type :"number " ,
272272Description :"Page number for pagination (min 1)" ,
273273Minimum :jsonschema .Ptr (1.0 ),
274274}
275275
276276schema .Properties ["perPage" ]= & jsonschema.Schema {
277- Type :"Number " ,
277+ Type :"number " ,
278278Description :"Results per page for pagination (min 1, max 100)" ,
279279Minimum :jsonschema .Ptr (1.0 ),
280280Maximum :jsonschema .Ptr (100.0 ),
@@ -287,20 +287,20 @@ func WithPagination(schema *jsonschema.Schema) *jsonschema.Schema {
287287// GraphQL tools will use this and convert page/perPage to GraphQL cursor parameters internally.
288288func WithUnifiedPagination (schema * jsonschema.Schema )* jsonschema.Schema {
289289schema .Properties ["page" ]= & jsonschema.Schema {
290- Type :"Number " ,
290+ Type :"number " ,
291291Description :"Page number for pagination (min 1)" ,
292292Minimum :jsonschema .Ptr (1.0 ),
293293}
294294
295295schema .Properties ["perPage" ]= & jsonschema.Schema {
296- Type :"Number " ,
296+ Type :"number " ,
297297Description :"Results per page for pagination (min 1, max 100)" ,
298298Minimum :jsonschema .Ptr (1.0 ),
299299Maximum :jsonschema .Ptr (100.0 ),
300300}
301301
302302schema .Properties ["after" ]= & jsonschema.Schema {
303- Type :"String " ,
303+ Type :"string " ,
304304Description :"Cursor for pagination. Use the endCursor from the previous page's PageInfo for GraphQL APIs." ,
305305}
306306
@@ -310,14 +310,14 @@ func WithUnifiedPagination(schema *jsonschema.Schema) *jsonschema.Schema {
310310// WithCursorPagination adds only cursor-based pagination parameters to a tool (no page parameter).
311311func WithCursorPagination (schema * jsonschema.Schema )* jsonschema.Schema {
312312schema .Properties ["perPage" ]= & jsonschema.Schema {
313- Type :"Number " ,
313+ Type :"number " ,
314314Description :"Results per page for pagination (min 1, max 100)" ,
315315Minimum :jsonschema .Ptr (1.0 ),
316316Maximum :jsonschema .Ptr (100.0 ),
317317}
318318
319319schema .Properties ["after" ]= & jsonschema.Schema {
320- Type :"String " ,
320+ Type :"string " ,
321321Description :"Cursor for pagination. Use the endCursor from the previous page's PageInfo for GraphQL APIs." ,
322322}
323323