Skip to main content

decode_response

Function decode_response 

Source
fn decode_response(
    response: JsonbVal,
    schema: &QuestionSchema,
) -> Result<StructValue>
Expand description

Decode strictly before the result can be persisted. Invalid responses are retried inside the request loop, without reaching non-strict expression wrappers. An explicit provider refusal is a valid unanswered question, represented by SQL NULL.