Function validate_entity

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

Checks the entity response before a fetch records a completed absence.

Empty sitelinks are a valid answer. A missing entity, ambiguous redirect or malformed table is a failed response, not evidence that no article exists. As in article, a single redirected entity is accepted.