mirror of
https://github.com/versia-pub/server.git
synced 2026-04-27 12:49:16 +02:00
13 lines
395 B
TypeScript
13 lines
395 B
TypeScript
import { z } from "zod";
|
|
import { ReferenceSchema, TransientEntitySchema } from "../entity.ts";
|
|
|
|
export const ReportSchema = TransientEntitySchema.extend({
|
|
type: z.literal("pub.versia:reports/Report"),
|
|
author: ReferenceSchema.nullish(),
|
|
reported: z.array(ReferenceSchema),
|
|
tags: z.array(z.string()),
|
|
comment: z
|
|
.string()
|
|
.max(2 ** 16)
|
|
.nullish(),
|
|
});
|