import { default } from "https://deno.land/x/endofunctor@v0.0.945/components/encode/jsonString.mjs";
Stringifies a given schema based on provided options.
Examples
// Using the default safe stringify method
const str_one_string = stringify()({
type: "object",
properties: {
hello: { type: "string" },
},
required: ["hello"],
});
// Using the default safe stringify method const str_one_string = stringify()({ type: "object", properties: { hello: { type: "string" }, }, required: ["hello"], });
// Using the unsafe stringify method const ustr_one_string = stringify({type:"unsafe"})({ type: "object", properties: { hello: { type: "string" }, }, required: ["hello"], });