Skip to main content
Module

x/fun/json_schema.ts>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 print
import { print } from "https://deno.land/x/fun@v2.0.0-alpha.6/json_schema.ts";

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" }