In BotFramework V4 you can validate user inputs using your own validator function:
dialogs.Add(new TextPrompt("textPrompt", TextPromptValidatorAsync));
But there is also a Validations Property in PromptOptions class.
return await step.PromptAsync(
TextPrompt,
new PromptOptions
{
Prompt = MessageFactory.Text("What is your name?"),
Validations = ??
},
cancellationToken);
What is it for?