mirror of
https://github.com/versia-pub/server.git
synced 2026-04-27 12:49:16 +02:00
13 lines
349 B
TypeScript
13 lines
349 B
TypeScript
import { z } from "zod";
|
|
import { u64 } from "./common.ts";
|
|
import { ReferenceSchema } from "./entity.ts";
|
|
|
|
export const CollectionSchema = z.strictObject({
|
|
author: ReferenceSchema.nullable(),
|
|
total: u64,
|
|
items: z.array(z.any()),
|
|
});
|
|
|
|
export const URICollectionSchema = CollectionSchema.extend({
|
|
items: z.array(ReferenceSchema),
|
|
});
|