Skip to main content

mapping_schema_from_validation_schema_with_dialect

Function mapping_schema_from_validation_schema_with_dialect 

Source
pub fn mapping_schema_from_validation_schema_with_dialect(
    schema: &ValidationSchema,
    dialect: DialectType,
) -> MappingSchema
Expand description

Build a dialect-aware MappingSchema while preserving nested types such as ARRAY, MAP, and STRUCT. If a type spelling is not understood by the selected dialect, this falls back to the validation resolver’s broad type family so existing best-effort behavior is retained.