Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrDelFunc = errors.New("del function is not allowed") ErrRecursiveDescent = errors.New("recursive descent operator '..' is not allowed") )
Functions ¶
func ValidateJQExpressions ¶
ValidateJQExpressions recursively validates all the fields of the object tagged with 'jq:"validate"'
func ValidateParsedJQ ¶ added in v0.1.0
ValidateParsedJQ checks that a parsed JQ query is safe for read-only use. It rejects assignment operators, del, dangerous recursive/unbounded built-ins, and the recursive descent operator.
The walk is reflection-driven so it automatically covers any new node types added by future gojq versions — no manual field enumeration needed.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.