schema_satisfied_by

Function schema_satisfied_by 

Source
pub(crate) fn schema_satisfied_by(original: &Schema, candidate: &Schema) -> bool
Expand description

Verifies whether the original planned schema can be satisfied with data adhering to the candidate schema. In practice, this is equality check on the schemas except that original schema can have nullable fields where candidate is constrained to not provide null data.