@cloudflare/json-schema-apidoc-loader

"Webpack loader applying transformations to dereferenced JSON Hyper-Schemas to make them more suitable for API documentation display"

Usage no npm install needed!

<script type="module">
  import cloudflareJsonSchemaApidocLoader from 'https://cdn.skypack.dev/@cloudflare/json-schema-apidoc-loader';
</script>

README

JSON Schema API Documentation Loader

Webpack loader that uses @cloudflare/json-schema-transform to convert JSON Hyper-Schema documents that do not have $refs into a form suitable for generating human-readable API documentation.

The resulting schemas validate the same set of instances as the input schemas, but simplify the structure as much as possible. Additionally, the example and cfCurl fields contain example values that documentation UIs can display.