import { json_schema } from "https://deno.land/x/fun@v2.0.0/mod.ts";
const { record } = json_schema;
Creates a JsonBuilder of a Record with string keys and values that match the supplied JsonBuilder
Examples
Example 1
Example 1
import * as J from "./json_schema.ts";
import { pipe } from "./fn.ts";
// schema === { type: "object", properties: {}, additionalProperties: { type: "number" } }
const schema = J.print(J.record(J.number()));
Parameters
codomain: JsonBuilder<A>
Returns
JsonBuilder<Record<string, A>>