Skip to content

Commit 86fc7c5

Browse files
authored
fix repo list (#43)
1 parent 3ff0b91 commit 86fc7c5

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/repos.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,14 +261,16 @@ export class Repos extends Asset {
261261
media_types: z
262262
.string()
263263
.optional()
264+
.default('')
264265
.describe(
265-
'Comma-delimited list of media types. Only repositories containing one or more artifacts with one of these media types will be returned. null should be added to the list to get repositories with image artifacts to handle legacy repositories.'
266+
'Comma-delimited list of media types. Only repositories containing one or more artifacts with one of these media types will be returned. Default is empty to get all repositories.'
266267
),
267268
content_types: z
268269
.string()
269270
.optional()
271+
.default('')
270272
.describe(
271-
'Comma-delimited list of content types. Only repositories containing one or more artifacts with one of these content types will be returned.'
273+
'Comma-delimited list of content types. Only repositories containing one or more artifacts with one of these content types will be returned. Default is empty to get all repositories.'
272274
),
273275
},
274276
outputSchema: repositoryPaginatedResponseSchema.shape,

tools.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,13 @@
3232
},
3333
"media_types": {
3434
"type": "string",
35-
"description": "Comma-delimited list of media types. Only repositories containing one or more artifacts with one of these media types will be returned. null should be added to the list to get repositories with image artifacts to handle legacy repositories."
35+
"default": "",
36+
"description": "Comma-delimited list of media types. Only repositories containing one or more artifacts with one of these media types will be returned. Default is empty to get all repositories."
3637
},
3738
"content_types": {
3839
"type": "string",
39-
"description": "Comma-delimited list of content types. Only repositories containing one or more artifacts with one of these content types will be returned."
40+
"default": "",
41+
"description": "Comma-delimited list of content types. Only repositories containing one or more artifacts with one of these content types will be returned. Default is empty to get all repositories."
4042
}
4143
},
4244
"required": ["namespace"],

0 commit comments

Comments
 (0)