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!

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

jesse
Hi everyone, I hesitated to post this here because I don’t want you to think I’m spamming, but I’ve been working on a Platform-as-a-Serv...
New
sergio
There’s a new TIOBE index report that came out that shows Elixir is still not in the top 50 used languages. It also goes on to call Elix...
New
AstonJ
I’ve just started the Phoenix part of the utterly brilliant online course by @pragdave. On generating the Phoenix app he uses the --no-ec...
New
und0ck3d
Hello everyone! A few days ago I’ve created a topic here about how people were creating CMSs with Elixir and Phoenix. I’ve been studying...
New
Nvim
Elixir appears to be a superior language to Python. I don’t see any advantage of Python over Elixir. Are there any?
New
nunobernardes99
Hi there Elixir friends :vulcan_salute: In a recent task I was on, I needed to check in two dates which of them is the maximum and which...
New
cvkmohan
The upcoming Phoenix 1.6 release looks very interesting. Became a habit to watch the commits - and - what they are bringing in. phx.gen...
New

Other popular topics Top

electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers’ Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New
stefanchrobot
What’s the safe way to decode a JSON string into a struct? I want to avoid calling String.to_atom. Jason.decode can give me a map with st...
New
Darmani72
If I have a post route which an argument: post /my_post_route/:my_param1, MyController.my_post_handler How would get the post params ...
New
WestKeys
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
New
senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
New

We're in Beta

About us Mission Statement