Skip to main content

json_schema_to_type_expr

Function json_schema_to_type_expr 

Source
pub fn json_schema_to_type_expr(schema: &Value) -> TypeExpr
Expand description

Best-effort conversion from JSON Schema into Lashlang’s value-type vocabulary.

JSON Schema is more expressive than TypeExpr. Unsupported or ambiguous constructs deliberately widen to TypeExpr::Dict or TypeExpr::Any instead of rejecting a host-declared capability.