Skip to main content

lenient_id

Function lenient_id 

Source
fn lenient_id<'de, D: Deserializer<'de>>(
    deserializer: D,
) -> Result<Option<String>, D::Error>
Expand description

A Sisu id that should be a string but, for at least gradeId, has arrived as a bare JSON number. A strict String field would fail to parse and drop the whole record in readable_elements, silencing whatever check depends on it. Coerces either shape into a String; anything else reads as absent.