Closed sublymus closed 9 months ago
// I receive the same value when I use trim or my validator
export const update_product_validator = schema.create({ id:schema.string(), photos:schema.string({},[ rules.trim(), rules.flleList(), // My validation ]) })
Package version
@ioc:Adonis/Core/Validator
Describe the bug
import { validator } from "@ioc:Adonis/Core/Validator";
validator.rule("flleList", async (value, _, options) => { const { root, mutate } = options;
},() => ({ allowUndefineds: true, async: true, }));
Reproduction repo
No response