Skip to main content

Module jsonpath

Module jsonpath 

Source
Expand description

JSONPath subjects for condition expressions: $.user.name (request body), request_body:$..., response_body:$.... Paths are compiled at config load (RFC 9535 via serde_json_path); malformed paths fail policy compilation, not requests.

Structs§

JsonSubject
A compiled JSONPath subject.

Enums§

BodyTarget
Which body a JSONPath subject queries.

Functions§

parse_json_subject
Recognizes and compiles a JSONPath subject. None means the subject is a plain var name; Some(Err) means it looked like a JSONPath subject but the path is malformed.