Skip to content

Commit

Permalink
fix openapi types
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-20 committed Jan 20, 2024
1 parent 3c87f37 commit 2a761d6
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions packages/openapi/src/routes/users/getUserClips.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,22 @@ export const getClipsRequestQuerySchema = z
.default('all')
.openapi({
param: {
name: 'unreadOnly',
name: 'readStatus',
in: 'query',
required: false,
description: 'クリップの未読ステータス',
},
example: 'all',
}),
text: z.string().openapi({
param: {
name: 'text',
in: 'query',
required: false,
description: 'クリップの検索クエリ',
},
example: 'TypeScript',
}),
limit: z
.string()
.default('20')
Expand Down Expand Up @@ -65,15 +74,6 @@ export const getClipsRequestQuerySchema = z
},
example: '2021-01-01T00:00:00.000Z',
}),
text: z.string().openapi({
param: {
name: 'text',
in: 'query',
required: false,
description: 'クリップの検索クエリ',
},
example: 'TypeScript',
}),
})
.partial();

Expand Down

0 comments on commit 2a761d6

Please sign in to comment.