mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-05 04:00:37 +08:00
9 lines
213 B
TypeScript
9 lines
213 B
TypeScript
import { z } from 'zod'
|
|
|
|
const arrayStringSchemaParttern = z.array(z.string())
|
|
|
|
export const validateArrayString = (schema: any) => {
|
|
const result = arrayStringSchemaParttern.safeParse(schema)
|
|
return result
|
|
}
|