Convert JSON Schema to human-readable Markdown documentation
Maintained. Last release 16 months ago, commits in 12 of the last 26 weeks. Weaker on recent releases and release cadence.
pip install jsonschema2mdjsonschema2md
Convert JSON Schemas to simple, human-readable Markdown documentation.
For example:
{
"$id": "https://example.com/person.schema.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Person",
"description": "JSON Schema for a person object.",
"type": "object",
"properties": {
"firstName": {
"type": "string",
"description": "The person's first name."
},
"lastName": {
"type": "string",
"description": "The person's last name."
}
}
}
will be converted to:
Person
JSON Schema for a person object.
Properties
firstName(string): The person's first name.lastName(string): The person's last name.
There's also the possibility to translate it to another language. For example, the same schema in French would result in:
Person
JSON Schema for a person object.
Propriétés
firstName(chaîne de caractères): The person's first name.lastName(chaîne de caractères): The person's last name.
See the examples directory for more elaborate examples.
Installation
Install with pip
pip install jsonschema2md