mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
16 lines
402 B
TypeScript
16 lines
402 B
TypeScript
import { z } from "zod";
|
|
import { url } from "../common.ts";
|
|
import { EntitySchema } from "../entity.ts";
|
|
|
|
export const ReportSchema = EntitySchema.extend({
|
|
type: z.literal("pub.versia:reports/Report"),
|
|
uri: z.null().optional(),
|
|
author: url.nullish(),
|
|
reported: z.array(url),
|
|
tags: z.array(z.string()),
|
|
comment: z
|
|
.string()
|
|
.max(2 ** 16)
|
|
.nullish(),
|
|
});
|