Function validate_index

Source
pub fn validate_index(response: &Json) -> Result<(), String>
Expand description

Refuses a malformed index before a caller records it as having no artwork.

An empty images array is a valid absence. Missing or wrongly typed arrays, and image entries with no original or supported thumbnail address, are failed responses and must remain eligible for a later fetch.