Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

453 B
Raw Blame
import { responseTimestamp, z } from "../openapi";

export const commentSchema = z
  .object({
    id: z.string(),
    taskId: z.string(),
    userId: z.string(),
    content: z.string(),
    createdAt: responseTimestamp,
    updatedAt: responseTimestamp,
    user: z
      .object({ name: z.string(), image: z.string().nullable() })
      .openapi("CommentAuthor"),
  })
  .openapi("Comment");

export const commentListSchema = z.array(commentSchema);