import { numberAsync, minLength, Input, stringAsync,transformAsync, objectAsync } from "@vigilio/valibot"; import { slug } from "@vigilio/express-core/helpers"; export const ${props}Schema = objectAsync({ id: numberAsync(), name: stringAsync( [minLength(1),minLength(3)]), slug: transformAsync(stringAsync( [minLength(1),minLength(3)]),slug), }); export type ${Props}Schema = Input; export type ${Props}EntitySchema = Omit<${Props}Schema, "id">;