Skip to main content

validate_protocol_stream

Function validate_protocol_stream 

Source
pub fn validate_protocol_stream(
    events: &[Value],
    strict: bool,
) -> Result<(), String>
Expand description

Validate a finite structured CLI event stream: (log | progress)* -> exactly one (result | error) -> end.

strict is forwarded to validate_protocol_event for every event.