mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
18 lines
463 B
TypeScript
18 lines
463 B
TypeScript
import { z } from 'zod';
|
|
|
|
export const testDefinitionCreateRequestBodySchema = z
|
|
.object({
|
|
name: z.string().min(1).max(255),
|
|
workflowId: z.string().min(1),
|
|
evaluationWorkflowId: z.string().min(1).optional(),
|
|
})
|
|
.strict();
|
|
|
|
export const testDefinitionPatchRequestBodySchema = z
|
|
.object({
|
|
name: z.string().min(1).max(255).optional(),
|
|
evaluationWorkflowId: z.string().min(1).optional(),
|
|
annotationTagId: z.string().min(1).optional(),
|
|
})
|
|
.strict();
|