Skip to main content
Module

x/fun/mod.ts>json_schema.print

A collection of algebraic data types, lenses, and schemables based on a light weight higher kinded type implementation. Written for deno.
Go to Latest
function json_schema.print
import { json_schema } from "https://deno.land/x/fun@v2.0.0-alpha.12/mod.ts";
const { print } = json_schema;

Collapse a JsonBuilder into a JsonSchema that can be logged or used as output for a webserver or a file.

Examples

Example 1

import * as J from "./json_schema.ts";

console.log(J.print(J.string())); // Logs { type: "string" }