DocumentNode class final

One object at a physical JSON Pointer in an OpenAPI document.

Constructors

DocumentNode(NodeKind kind, Object? value, String pointer)
Records the expected role of value.
const

Properties

fields → Map<String, Object?>
Object fields, or an empty map for a boolean schema.
no setter
hashCode → int
The hash code for this object.
no setterinherited
key → String
Last unescaped JSON Pointer token.
no setter
kind → NodeKind
The object's role in its parent.
final
pointer → String
JSON Pointer from the document root.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
value → Object?
Source JSON at pointer.
final

Methods

allowsRef(OpenApiFamily family) → bool
Whether this position permits a reference in family.
children(OpenApiFamily family) → Iterable<DocumentNode>
Visits OpenAPI objects and schema keywords. Example data stays opaque.
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