JSONSchema::NodeContext
Tracks the location of a JSON value within a JSON schema.
Constructors
Instance methods
dig_into(input : JSON::Any)
Calls JSON::Any#dig on a given input to dig to the value represented by this NodeContext.
from_property(prop : String)
Create a child NodeContext based on self, taking into account whether self is the root node.
parent
Sourceparent=(parent : NodeContext | Nil)
Sourcepath
Sourceto_s
Get a string representation of the node's full path. The format is dot and square bracket notation,
similar to the format expected by jq, a popular JSON querying CLI.
Example: .parent.children[0].example
The top-level . will always refer to the root node.