apemanschema
JSON schema validator for apeman.
Installation
$ npm install apemanschema --save
Usage
Create a directory with name "schemas" and put schema files like "User.schema.json" there.
schemas/user.json
"title": "User" "description": "A user" "type": "object" "properties": "id": "description": "The unique identifier for a account" "type": "integer" "accountName": "description": "Name of the account" "type": "string" "required": "id" "name"
schemas/index.js
'use strict' const apemanschema = // Exports schemas as module.moduleexports =
Then,
'use strict' // Require defined schemasconst schemas = let error = console
License
This software is released under the MIT License.