๐ I'm brand new to Elixir coming mostly from Python and I'm experiencing some analysis paralysis when it comes to data deserialization options.
I'm writing a small Phoenix project that doesn't need a database. I basically call a bunch of external APIs and display the results. When it comes to modeling the responses of the external APIs, do I:
- just pass Maps around everywhere
- define structs
- use Ecto, but just the parts that have to do with schemas and validation
- use some combination of https://github.com/IvanRublev/Domo, https://github.com/ejpcmac/typed_struct, https://github.com/IvanRublev/Nestru, https://github.com/vic/params
๐ตโ๐ซ
For other former Python-ers, if this were Python, I'd use dataclasses or maybe Pydantic to do this. What seems like the "best" or at least "a good" option with Elixir? It seems I have a lot of them.