json-schema-renderer

command module
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2025 License: MIT Imports: 1 Imported by: 0

README

JSON schema renderer

Minimal CLI to create a human readable documentation from a JSON schema.

The CLI currently supports outputting Markdown and Asciidoc, either to stdout or write into a file.

Usage

Output asciidoc to stdout

json-schema-renderer schema.json

Write markdown to file

json-schema-renderer schema.json -f markdown -o schema.md

Pipe schema to CLI

cat schema.json | json-schema-renderer -o rendered.adoc

This is mainly useful to combine with other tools, eg into somthing like this

ytt --data-values-schema-inspect=true --output=openapi-v3 -f schema.yaml  | openapi-to-json-schema | json-schema-renderer -o schema.adoc

Documentation

Overview

Copyright © 2024 Mathias Petermann <mathias.petermann@gmail.com>

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL