-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom validator is not working, could you provide an example? #30
Labels
Comments
Your YAML example is invalid. I have tested it with the following code: - message: How can I help you?
name: hello
type: String
- message: Would like to order something?!
name: order
type: String
validators:
- agreed: true
- message: What do you like to have?
type: String
name: product It works correctly. But you can use the - message: Would like to order something?!
name: order
type: SingleChoice
options:
- label: Yes
next: products
- label: No
next: quit |
Oops, yeah, the YAML has problem. Thanks.
|
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was trying to define an customer validator to check user's answer. If the answer is "yes","sure" ... then jump to one rule. Otherwise, terminate (which part I did not write yet).
Here is my code.
The rules are as following.
It works without that validator. I tried to print out inside the definition of validator, but nothing is printed.
Am I defining validator incorrectly?
Could you provide an example of validator or tell me what I am doing wrong here?
Thanks in advance!
The text was updated successfully, but these errors were encountered: