Skip to main content

parse_opa_response

Function parse_opa_response 

Source
fn parse_opa_response(body: &[u8]) -> Result<OpaDecision, OpaParseError>
Expand description

Parses an OPA response body into an OpaDecision. Pure and network-free so the decision-mapping logic is unit-testable.