json-schema-generator
Version:
JSON schema generator based on draft-v4.
34 lines (17 loc) • 451 B
JavaScript
<!-- Start lib/compiler.js -->
## generate(tree, schema, parent)
Generates a JSON schema based on the provided AST tree.
### Params:
* **Object** *tree* AST
* **Object** *schema* The schema object
* **Object** *parent* Schema node parent object
### Return:
* **void**
## compile(tree)
Initates compiling the given AST into a
JSON schema.
### Params:
* **Object** *tree* AST object
### Return:
* **void**
<!-- End lib/compiler.js -->