NiceJsonSchemaValidator class

Validates data against a JSON Schema.

Constructors

NiceJsonSchemaValidator(Map<String, dynamic> schema)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
schema Map<String, dynamic>
final

Methods

isValid(Map<String, dynamic> data) bool
Check if data is valid.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
validate(Map<String, dynamic> data) Map<String, String>
Validate data against the schema. Returns a map of field keys to error messages (empty if valid).

Operators

operator ==(Object other) bool
The equality operator.
inherited