dtoQuestionValidation
QuestionValidation is a constraint an answer has to satisfy on top of being present. Only constraints a caller can evaluate itself are published, so a question carrying none is satisfied by any non-empty answer.
- messageType: string
message is the wording to show the customer when their answer does not match pattern.
- patternType: string
pattern is a regular expression the whole answer has to match, such as "^[0-9]{4}$" for a four-digit field. It is never empty.