Skip to content

Commit

Permalink
Update API spec
Browse files Browse the repository at this point in the history
  • Loading branch information
JR40159 committed Nov 13, 2024
1 parent e2e4b47 commit 38c8a4f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/src/routes/v2/model/postModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import { parse } from '../../../utils/validate.js'

export const postModelSchema = z.object({
body: z.object({
name: z.string().min(1, 'You must provide a model name'),
kind: z.nativeEnum(EntryKind),
description: z.string().min(1, 'You must provide a model description'),
name: z.string().min(1, 'You must provide a model name').openapi({ example: 'Yolo v4' }),
kind: z.nativeEnum(EntryKind).openapi({ example: 'model' }),
description: z.string().min(1, 'You must provide a model description').openapi({ example: 'You only look once' }),
visibility: z.nativeEnum(EntryVisibility).optional().default(EntryVisibility.Public),
collaborators: z
.array(
Expand Down

0 comments on commit 38c8a4f

Please sign in to comment.