MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / Validate

Method Validate

pkg/util/jsonpath/jsonpath.go:26–28  ·  view source on GitHub ↗

Validate walks the Jsonpath AST. It returns an error if the AST is invalid (last not in array subscripts, @ in root expressions).

()

Source from the content-addressed store, hash-verified

24// Validate walks the Jsonpath AST. It returns an error if the AST is invalid
25// (last not in array subscripts, @ in root expressions).
26func (j Jsonpath) Validate() error {
27 return j.Path.Validate(0 /* nestingLevel */, false /* insideArraySubscript */)
28}

Callers

nothing calls this directly

Calls 1

ValidateMethod · 0.65

Tested by

no test coverage detected