Module

x/json_schema_aot/mod.ts>generateJavaScriptParser

Ahead-of-time code generator for JSON Schema validation and type declarations
Latest
function generateJavaScriptParser
import { generateJavaScriptParser } from "https://dotland.deno.dev/x/json_schema_aot@0.2.1/mod.ts";

Generate JavaScript code for validating and parsing the given JSON Schema. This should be done during development and the resulting code should be checked into source control.

Note: This function should only be called with known safe JSON Schema input (i.e. schema you created yourself). This function has not been analyzed from a security perspective.

Parameters

schema: any

Returns

string