pub fn validate_request(req: &SystemRequest) -> ValidationResult<()>Expand description
Validate a request. Pure — does no I/O.
Rules derived from the spec:
- at least one question
- all question kinds validate their own
criteriashape - for Choice: criteria must be non-empty (no explicit lower bound in spec but a zero-option question is meaningless and would 422 from the real API)