evestera / json_typegen

Tools and libraries to create types for Rust, Kotlin, TypeScript and Python from JSON samples
https://typegen.vestera.as
Apache License 2.0
268 stars 26 forks source link

Current web version broken: Missing Generics #9

Closed theduke closed 5 years ago

theduke commented 5 years ago

Hey, very useful crate!

The CLI works fine, but the current web version produces invalid code with missing generic params.

Eg:

struct Root {
  a: Vec,
  b: Option,
}
evestera commented 5 years ago

Thanks, and thank you for the bug report.

Turns out I had forgotten to escape brackets in the output code, so stuff like <i64> was interpreted as a tag. Should be fixed now.