SchemaRule class sealed

Compiled representation of a JSON Schema keyword group.

Each SchemaRule subtype corresponds to one keyword group from the JSON Schema subset supported by this package. Rules validate a runtime dynamic value and return every SchemaViolation found — all rules are always evaluated so callers receive the complete list in one pass.

Rule trees are produced by SchemaParser.parse and can also be constructed directly for programmatic schema building (see the examples in example/). JsonSchemaValidator is a higher-level convenience that handles both parsing and validation in a single call.

Implementers

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
validate(dynamic value, String path) List<SchemaViolation>
Validates value at path and returns every violation found.

Operators

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