Skip to content

phil-mitchell/exegesis-plugin-jsonschema

Repository files navigation

exegesis-plugin-jsonschema

Run Status Coverage Badge

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
    ]
};

About

An exegesis plugin to generate CRUD operations based on JSON schema definition

Resources

License

Stars

Watchers

Forks

Packages

No packages published