Issue with Specifying "Reask" for On-Fail in Guardrails Validators #1116
-
While testing validators from Guardrails Hub using Here are the two approaches I tried:
Observations
First Approach: The current implementation doesn’t seem to support specifying on_fail directly in the way shown in approach 1. The validator attributes in the RAIL definition are passed through this section without including the on_fail attribute. Meanwhile, the
Second Approach: In this case, on-fail is set at this point in the code:
Request for GuidanceCould you please advise on how I can properly specify the on-fail attribute for validators, specifically for using the "reask" action? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I'm not sure why, but it's working now. The correct attribute name should be |
Beta Was this translation helpful? Give feedback.
I'm not sure why, but it's working now. The correct attribute name should be
on-fail-guardrails_valid_choices
.