exegesis-plugin-jsonschema
v1.2.3
Published
An exegesis plugin to generate CRUD operations based on JSON schema definition
Downloads
14
Readme
exegesis-plugin-jsonschema
Description
An exegesis plugin to generate CRUD operations based on JSON schema definition.
Installation
npm install exegesis-plugin-jsonschema
Example
Add this to your Exegesis options:
const exegesisJSONSchemaPlugin = require( 'exegesis-plugin-jsonschema' );
var jsonShemaPlugin = exegesisJSONSchemaPlugin({});
await jsonSchemaPlugin.addSchema( path.resolve( __dirname, './model/root.json' ) );
options = {
plugins: [
jsonSchemaPlugin
]
};