SchemaResolver class

Compiles JSON Schema documents and resolves OpenTool's legacy schema names.

Schemas default to Draft 2020-12. A $schema declaration selects a supported dialect. OpenTool references of the form #/schemas/<name> are adapted to a local resource provider; standard $ref and $dynamicRef values are left to the JSON Schema engine.

Constructors

SchemaResolver([Map<String, dynamic>? definitions])
SchemaResolver.withReferenceResolver({Map<String, dynamic>? definitions, SchemaReferenceResolver? referenceResolver})

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
parseSchema(Object json, {String path = 'schema'}) → Schema
resolveAll() → Map<String, Schema>
toString() → String
A string representation of this object.
inherited

Operators

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