Skip to content

Commit

Permalink
chore:命名規則に従う
Browse files Browse the repository at this point in the history
  • Loading branch information
speak-mentaiko committed Sep 8, 2024
1 parent c774c1c commit 8e2bfef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions packages/kcms/src/team/adaptor/validator/team.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ export const PostTeamsRequestSchema = z.array(

export const PostTeamsResponseSchema = z.array(TeamSchema).openapi('Teams');

export const TeamIdParamsSchema = z.object({
teamid: z.string().openapi({
export const DeleteTeamParamsSchema = z.object({
teamId: z.string().openapi({
param: {
name: 'teamid',
name: 'teamId',
in: 'path',
},
example: '7549586',
Expand Down
6 changes: 3 additions & 3 deletions packages/kcms/src/team/routing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
CommonErrorSchema,
PostTeamsRequestSchema,
PostTeamsResponseSchema,
TeamIdParamsSchema,
DeleteTeamParamsSchema,
} from './adaptor/validator/team';

export const GetTeamsRoute = createRoute({
Expand Down Expand Up @@ -65,9 +65,9 @@ export const PostTeamsRoute = createRoute({

export const DeleteTeamRoute = createRoute({
method: 'delete',
path: '/team/{teamid}',
path: '/team/{teamId}',
request: {
params: TeamIdParamsSchema,
params: DeleteTeamParamsSchema,
},
responses: {
204: {
Expand Down

0 comments on commit 8e2bfef

Please sign in to comment.