Add a customErrorMap to a .shape schema #3764
Unanswered
Stephane-Pires
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I want to be able to customize remap
ALL
errors from aschema
(to display them on the UI).Basically I have :
I want to map error from
insertHouse.shape.catSchema,
fromhouseFormSchema
to usecustomErrorMap
So that each parsing error on
insertHouse.shape.catSchema
fromhouseFormSchema
are changed toThe cat has an error
AND I only want the
houseFormSchema
to be affected. I don't want to remap the error elsewhere.Can someone point me to the documentation, (I already read the zoo documentation, about errors, but I'm not sure if what I want to do is feasible at all)
Thanks for reading/answering
See you
Beta Was this translation helpful? Give feedback.
All reactions