Skip to content

Commit

Permalink
openapiのパスパラメータの方式を:parameterから{parameter}
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-20 committed Jan 20, 2024
1 parent 6e4d7ba commit c96dd03
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/openapi/src/routes/articles/getArticle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const getArticleResponseSchema = z.object({

export const getArticleRoute = createRoute({
method: 'get',
path: '/articles/:articleId',
path: '/articles/{articleId}',
operationId: 'getArticle',
description: '記事のIDから記事を取得します',
request: {
Expand Down
2 changes: 1 addition & 1 deletion packages/openapi/src/routes/users/deleteUserClip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const deleteClipResponseSchema = z.object({

const deleteUserClipRouteBase = {
method: 'delete',
path: '/users/me/clips/:clipId' as const,
path: '/users/me/clips/{clipId}' as const,
operationId: 'deleteMyClip',
description: 'クリップを削除します',
request: {
Expand Down
2 changes: 1 addition & 1 deletion packages/openapi/src/routes/users/deleteUserInboxItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const deleteInboxItemResponseSchema = z.object({

const deleteInboxItemRouteBase = {
method: 'delete',
path: '/users/me/inboxes/:itemId' as const,
path: '/users/me/inboxes/{itemId}' as const,
operationId: 'deleteMyInboxItem',
description: '受信箱のアイテムを削除します',
request: {
Expand Down
2 changes: 1 addition & 1 deletion packages/openapi/src/routes/users/getUserClip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const getUserClipResponseSchema = z.object({

export const getUserClipRouteBase = {
method: 'get',
path: '/users/me/clips/:clipId' as const,
path: '/users/me/clips/{clipId}' as const,
operationId: 'getMyClip',
description: 'クリップを取得します',
request: {
Expand Down
2 changes: 1 addition & 1 deletion packages/openapi/src/routes/users/getUserInboxItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const getInboxItemResponseSchema = z.object({

export const getInboxItemRouteBase = {
method: 'get',
path: '/users/me/inboxes/:itemId' as const,
path: '/users/me/inboxes/{itemId}' as const,
operationId: 'getMyInboxItem',
description: '受信箱のアイテムを取得します',
request: {
Expand Down
2 changes: 1 addition & 1 deletion packages/openapi/src/routes/users/moveUserClipToInbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const moveUserClipToInboxResponseSchema = z.object({

const moveClipToInboxRouteBase = {
method: 'post',
path: '/users/me/clips/:clipId/move-to-inbox' as const,
path: '/users/me/clips/{clipId}/move-to-inbox' as const,
operationId: 'moveMyClipToInbox',
description: 'クリップを受信箱に移動します',
request: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const moveInboxItemToClipResponseSchema = z.object({

const moveInboxItemToClipRouteBase = {
method: 'post',
path: '/users/me/inboxes/:itemId/move-to-clip' as const,
path: '/users/me/inboxes/{itemId}/move-to-clip' as const,
operationId: 'moveMyInboxItemToClip',
description: '受信箱のアイテムをスタックに移動します',
request: {
Expand Down
2 changes: 1 addition & 1 deletion packages/openapi/src/routes/users/patchUserClip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const patchClipResponseSchema = z.object({

const patchUserClipRouteBase = {
method: 'patch',
path: '/users/me/clips/:clipId' as const,
path: '/users/me/clips/{clipId}' as const,
operationId: 'patchMyClip',
description: 'クリップを更新します',
request: {
Expand Down

0 comments on commit c96dd03

Please sign in to comment.