From faa430d7b991f82972a57e4a173aec262df1e406 Mon Sep 17 00:00:00 2001 From: Marvin Date: Sun, 14 Jan 2024 13:23:31 +0100 Subject: [PATCH] Panic in all cases if the schema doesn't fit --- src/bindgen.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bindgen.rs b/src/bindgen.rs index bd3da14..b125866 100644 --- a/src/bindgen.rs +++ b/src/bindgen.rs @@ -179,7 +179,7 @@ pub fn gen(input_path: impl AsRef) { "boolean" => "bool".to_owned(), "array" => get_inner_type(prop.items.as_ref().unwrap().clone()), "object" => "Json".to_owned(), - _ => "_unknown".to_owned(), + _ => todo!(), }; // Wrap type in an Option if nullable.