adhara-schemas
v0.0.10
Published
Schemas and data structures
Downloads
27
Maintainers
Keywords
Readme
adhara-schemas
Define schemas and data structures that can be shared across Adhara components.
Schemas are defined using Joi and can be used to validate javascript objects against. It provides methods to easily validate common data types, such as e-mail addresses and phone numbers, or more complex data structures like REST API request and response data.
Schemas are indexed by their path, with general data structures being placed at the root.
Getting started
Prerequisites
Node.js needs to be installed.
Installing
git clone [email protected]:AdharaProjects/adhara-schemas.git
cd adhara-schemas
npm install
Testing
npm test