Open jBernavaPrah opened 6 years ago
My proposal:
--- line: 559-569 of resty/validation.lua
if valid and field.valid then
data[index] = istype('callable')(field.value) and field.value() or field.value
elseif invalid and field.invalid then
data[index] = istype('callable')(field.value) and field.value() or field.value
elseif validated and field.validated then
data[index] = istype('callable')(field.value) and field.value() or field.value
elseif unvalidated and field.unvalidated then
data[index] = istype('callable')(field.value) and field.value() or field.value
end
Hi!
How can I have the fields in original format when multiple new validator are created?
Ex: