Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit102181d

Browse files
committed
use lowercase strings for the jsonschema types
1 parent1286e06 commit102181d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

‎pkg/github/server.go‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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
269269
funcWithPagination(schema*jsonschema.Schema)*jsonschema.Schema {
270270
schema.Properties["page"]=&jsonschema.Schema{
271-
Type:"Number",
271+
Type:"number",
272272
Description:"Page number for pagination (min 1)",
273273
Minimum:jsonschema.Ptr(1.0),
274274
}
275275

276276
schema.Properties["perPage"]=&jsonschema.Schema{
277-
Type:"Number",
277+
Type:"number",
278278
Description:"Results per page for pagination (min 1, max 100)",
279279
Minimum:jsonschema.Ptr(1.0),
280280
Maximum: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.
288288
funcWithUnifiedPagination(schema*jsonschema.Schema)*jsonschema.Schema {
289289
schema.Properties["page"]=&jsonschema.Schema{
290-
Type:"Number",
290+
Type:"number",
291291
Description:"Page number for pagination (min 1)",
292292
Minimum:jsonschema.Ptr(1.0),
293293
}
294294

295295
schema.Properties["perPage"]=&jsonschema.Schema{
296-
Type:"Number",
296+
Type:"number",
297297
Description:"Results per page for pagination (min 1, max 100)",
298298
Minimum:jsonschema.Ptr(1.0),
299299
Maximum:jsonschema.Ptr(100.0),
300300
}
301301

302302
schema.Properties["after"]=&jsonschema.Schema{
303-
Type:"String",
303+
Type:"string",
304304
Description:"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).
311311
funcWithCursorPagination(schema*jsonschema.Schema)*jsonschema.Schema {
312312
schema.Properties["perPage"]=&jsonschema.Schema{
313-
Type:"Number",
313+
Type:"number",
314314
Description:"Results per page for pagination (min 1, max 100)",
315315
Minimum:jsonschema.Ptr(1.0),
316316
Maximum:jsonschema.Ptr(100.0),
317317
}
318318

319319
schema.Properties["after"]=&jsonschema.Schema{
320-
Type:"String",
320+
Type:"string",
321321
Description:"Cursor for pagination. Use the endCursor from the previous page's PageInfo for GraphQL APIs.",
322322
}
323323

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp