--- a/crates/jrsonnet-macros/src/typed.rs +++ b/crates/jrsonnet-macros/src/typed.rs @@ -407,6 +407,7 @@ impl #impl_generics FromUntyped for #ident #ty_generics #where_clause { fn from_untyped(value: Val) -> JrResult { + ::TYPE.check(&value)?; let obj = value.as_obj().expect("shape is correct"); Self::parse(&obj) }