Skip to content

Commit

Permalink
Panic in all cases if the schema doesn't fit
Browse files Browse the repository at this point in the history
  • Loading branch information
marv7000 committed Jan 14, 2024
1 parent 49c79f9 commit faa430d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bindgen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ pub fn gen(input_path: impl AsRef<std::path::Path>) {
"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<T> if nullable.
Expand Down

0 comments on commit faa430d

Please sign in to comment.