exframe-model

1.3.10 • Public • Published

exframe-model module

====================================

exframe-model will be a lightweight library for more simply producing json-schema files. Used in conjunction with exframe-api, a lot of the boiler plate for developing the API should be eliminated.

Use

const schema = require('exframe-model');

Full Example

const schema = require('exframe-model');

let testSchema = schema.create({
  title: 'Test Schema',
  type: {
    message: String,
    status: Number,
    result: { testValue: String }
  }
});

Methods

create()

Syntax

const { create } = require('exframe-model');

create(schema);

Parameter Values

  • schema - the object whose schema needs to be created.

Tests

npm run test

Readme

Keywords

none

Package Sidebar

Install

npm i exframe-model

Weekly Downloads

141

Version

1.3.10

License

ISC

Unpacked Size

7.19 kB

Total Files

11

Last publish

Collaborators

  • exzeodevops