mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 16:38:19 +01:00
11 lines
292 B
TypeScript
11 lines
292 B
TypeScript
|
|
import { z } from "zod";
|
||
|
|
import { url } from "../common.ts";
|
||
|
|
import { EntitySchema } from "../entity.ts";
|
||
|
|
|
||
|
|
export const ReactionSchema = EntitySchema.extend({
|
||
|
|
type: z.literal("pub.versia:reactions/Reaction"),
|
||
|
|
author: url,
|
||
|
|
object: url,
|
||
|
|
content: z.string().min(1).max(256),
|
||
|
|
});
|