exframe-model
v1.3.10
Published
exframe-model
Downloads
328
Readme
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