import { json_schema } from "https://deno.land/x/fun@v2.0.0/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
Example 1
import * as J from "./json_schema.ts";
console.log(J.print(J.string())); // Logs { type: "string" }
Parameters
jsonschema: JsonBuilder<A>