import { json_schema } from "https://deno.land/x/fun@v2.0.0/mod.ts";
const { array } = json_schema;
Creates a JsonBuilder of an Array with 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: "array", items: { type: "number" } }
const schema = J.print(J.array(J.number()));
Parameters
item: JsonBuilder<A>
Returns
JsonBuilder<ReadonlyArray<A>>