UNPKG

json-schema-generator

Version:

JSON schema generator based on draft-v4.

37 lines (18 loc) 432 B
<!-- Start lib/ast.js --> ## utils Generates an Abstract Syntax Tree used for generating the schema. ## generateHash(value) Computes the hex hash of the given value ### Params: * **Mixed** *value* Value to hash ### Return: * **String** HEX value. ## build(json) Initiates generating the AST from the given JSON document. ### Params: * **Object** *json* JSON object ### Return: * **void** <!-- End lib/ast.js -->