threeaccents

threeaccents

JSON to Elixir code generator (online tool)

Whenever I’m writing an API I always like to create an embedded schema at the “web” level to validate and add types to my request/responses. Manually creating an embedded schema for a large JSON payload is pretty annoying. So I hacked together this little LiveView App to automate that process for us.

Here is a screenshot of the app:

There’s still some other little things I want to add and edge cases that need to be taken care of. But I think its ready enough to be played with.
Let me know what you think!

First Post!

tommica

tommica

Oh this is a really, really neat tool! These kind of code generation tools are just really nice to use, so this is probably going to be popular - maybe you could add to it the ability to generate structs from the JSON!

Most Liked

kwando

kwando

Would love for this to be a CLI tool instead :slight_smile:

yangm97

yangm97

I think I crashed your app :slight_smile:

yangm97

yangm97

What I mean by that is I have a json payload that causes the app to reload itself, not a permanent denial of service.

Last Post!

yangm97

yangm97

Sure! You can see that happening on my previous JSON. Some entities are being defined multiple times with varying properties, instead of being merged as a single entity composed of all properties inferred by each instance.

Where Next?

Popular in Discussions Top

AstonJ
If a newbie asked you about Phoenix Contexts, how would you explain the basics to them? Feel free to be as concise or in-depth as you li...
New
lorenzo
Hey everone! I created a prototype for my app using Nodejs for the api. But the framework I chose wasnt great (in general theresnt any g...
New
dogweather
I wrote this comment on r/haskell, and it’s not popular there. :wink: But I think I’m on to something… Haskell reminds me of Java, and e...
New
PragTob
Hello everyone, I know we had quite some threads (read through lots of them) about background job processing but it remains a hotly deba...
New
AstonJ
Seen any cool LiveView demos, sample apps or examples? Please post them here! :003:
New
klo
Got a question about when to concat vs. prepending items to list then reversing to achieve appending. So i know lists boil down to [1 | ...
New
arcanemachine
https://nitter.net/josevalim/status/1744395345872683471 https://twitter.com/josevalim/status/1744395345872683471
New

Other popular topics Top

ashish173
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New
greenz1
I have a phoenix application from which a user can download multiple(5-6) files of size 1MB. I couldn’t find anything related to sending ...
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
AngeloChecked
What learn first? Rust or Elixir Hi Elixir community! I’m here because i want learn a new language. I’m a junior developer and mainly i ...
New
albydarned
Hello all! I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New

We're in Beta

About us Mission Statement