ValidationLayer class
LAYER 2 — Validates input structure and sanitizes the payload.
Rejects malformed or empty payloads before they reach any deeper
(and more expensive) layers. On success, the sanitized body is stored
back into RequestContext.metadata under sanitizedBody so
downstream layers can use the cleaned-up version instead of the raw
input.
- Implemented types
Constructors
Properties
Methods
-
check(
RequestContext context) → Future< SecurityResult> -
Inspects
contextand returns a SecurityResult.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited