Skip to content
Snippets Groups Projects
referenceSchema.ts 291 B
Newer Older
import { z } from 'zod';
import { articleSchema } from './articleSchema';

export const referenceSchema = z.object({
  link: z.string().url().nullable(),
  article: articleSchema.optional(),
  type: z.string(),
  resource: z.string(),
  id: z.number(),
  annotatorClassName: z.string(),
});