mirror of
https://github.com/versia-pub/server.git
synced 2026-04-27 12:49:16 +02:00
9 lines
297 B
TypeScript
9 lines
297 B
TypeScript
import { z } from "zod";
|
|
import { EntitySchema, ReferenceSchema } from "../entity.ts";
|
|
|
|
export const ReactionSchema = EntitySchema.extend({
|
|
type: z.literal("pub.versia:reactions/Reaction"),
|
|
author: ReferenceSchema,
|
|
object: ReferenceSchema,
|
|
content: z.string().min(1).max(256),
|
|
});
|