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: 15th December 2021
First published: 25th March 2021

This blog is created by Stuart Page

I'm a freelance web developer and technology consultant based in Surrey, UK, with over 10 years experience in web development, DevOps, Linux Administration, and IT solutions.

Need support with your infrastructure or web services?

Get in touch