Programster's Blog

Tutorials focusing on Linux, programming, and open-source

Generating HTML Docs For JSON Schemas

After creating a PHP package to make it easy to create JSON specifications, I needed a way to present them in a client-friendly way. Luckily, we can do this with the help of the json-schema-for-humans python tool

Steps

Install the tool with:

pip install json-schema-for-humans

Then create your schema.

Finally, convert that schema into a web document:

generate-schema-doc schema.json docs.html
Last updated: 25th March 2021
First published: 25th March 2021