@@ -1,6 +1,9 @@
|
||||
import { z } from 'zod'
|
||||
import { z } from '../../../../zod'
|
||||
import { blockBaseSchema } from '../../shared'
|
||||
import { LogicBlockType } from '../constants'
|
||||
import { extendZodWithOpenApi } from 'zod-openapi'
|
||||
|
||||
extendZodWithOpenApi(z)
|
||||
|
||||
const baseOptions = z.object({
|
||||
variableId: z.string().optional(),
|
||||
@@ -24,7 +27,7 @@ const basicSetVariableOptionsSchema = baseOptions.extend({
|
||||
})
|
||||
|
||||
const initialSetVariableOptionsSchema = baseOptions.extend({
|
||||
type: z.undefined(),
|
||||
type: z.undefined().openapi({ type: 'string' }),
|
||||
expressionToEvaluate: z.string().optional(),
|
||||
isCode: z.boolean().optional(),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user