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

ValidationLayer()

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
A short, stable, human-readable name used in logs and results.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

check(RequestContext context) Future<SecurityResult>
Inspects context and 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