documentedRules method
The rules describing this route's input: the inline rules, or those
of the validates form request evaluated against an empty request
(for documentation; null when none are declared or the form
request's rules need a real request).
Implementation
Map<String, Object>? documentedRules() {
final inline = _rules;
if (inline != null) {
return inline;
}
final form = _formRequest;
if (form == null) {
return null;
}
try {
return form.rules(Request.fake(method: methods.first, path: path));
} on Object {
return null;
}
}