Function validate_summary

Source
pub fn validate_summary(response: &Json) -> Result<(), &'static str>
Expand description

Distinguishes a readable summary or genuine absence from an invalid body.

A typed standard/stub, disambiguation or main page can have no extract. Older responses with a string extract and no type remain readable. An unknown response shape must not erase a biography or prevent a later retry.