json to cerberus convenience utility

15 views
Skip to first unread message

Klaas

unread,
Nov 14, 2018, 4:14:00 PM11/14/18
to Eve REST Framework
Hi,

I often have the use case that I use an external API that responds with some JSON data. Gladly there is also often a good descrition
with examples of the API and responded JSON data.

To reduce the keypunch quota to initially use the JSON and validate it with cerberus I wrote a small utility that converts a given JSON input
into a simple cerberus schema including the datatypes.
Really simple but (IMHO) a good starting point to get some new (not self defined) JSON into a cerberus schema format initially.

Simple usage from the command line. Meant to be used as copy&paste output for your schema definition.


Feel free to use if it is of any use for you ...

Sample run:

json2cerberus_sample_run.PNG

Reply all
Reply to author
Forward
0 new messages