Given the schema definition, we can generate the @type spec of structs created with `use Z.Struct` [typed_struct](https://hexdocs.pm/typed_struct/readme.html) does a good job of this. Maybe we can draw some inspiration from there.