Simple example of validator returning FailResult throws Cannot extend enumerations error #1224
-
I wondered if anyone could assist me, I have a custom validator and whenever I return a FailResult , I get an error ‘Cannot extend enumerations’ Here is a basic example , can anyone suggest why I am getting an error ? input_validator.py
|
Beta Was this translation helpful? Give feedback.
Answered by
widgetface
Jan 28, 2025
Replies: 1 comment 3 replies
-
My apologies , the issue arose because I used Guard().use(input_validator.InputValidator(on_fail=OnFailAction)) I should have used Guard().use(input_validator.InputValidator(on_fail="exception")) |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
CalebCourier
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
My apologies , the issue arose because I used
Guard().use(input_validator.InputValidator(on_fail=OnFailAction))
I should have used
Guard().use(input_validator.InputValidator(on_fail="exception"))