Skip to content

LOKE/schemas

Repository files navigation

Schemas

JSON schemas for LOKE services

Using

Install as a node module:

npm i -S LOKE/schemas#master

Require in, and use in validators:

const schemas = require("@loke/schemas");
myValidator.validate(someObject, schemas.TableBills.Bill);

For example, with Ajv:

const Ajv = require("ajv");
const ajv = new Ajv();
const schemas = require("@loke/schemas");
const validate = ajv.compile(schemas.TableBills.Bill);

const isValid = validate(objToCheck);

About

JSON schemas for LOKE services

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •