ZapValidator class abstract final

Validates raw ZAP documents against the ZAP schemas.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Static Methods

validate(Map<String, Object?> document, {Map<String, Object?>? schema}) → ZapValidationResult
Validates document (already JSON-decoded) against the schema for its type field, or against schema when given.
validateRaw(Object? value) → ZapValidationResult
Validates a raw (not yet decoded) value as a ZAP message root: rejects non-objects before schema dispatch.
validateWith(Object? value, Map<String, Object?> schema) → ZapValidationResult
Validates an arbitrary decoded value against schema — the third-party entry for roots that are not message objects.