From 407c8b6138e0dba91657252e4573db760e553cc6 Mon Sep 17 00:00:00 2001 From: Philip Kirkbride Date: Sun, 9 Apr 2017 11:15:47 -0400 Subject: [PATCH] Make clear Joi is module to be required https://github.com/ryanfitz/vogels/issues/199 --- README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1557272..66ebd9a 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,6 @@ vogels is a [DynamoDB][5] data mapper for [node.js][1]. ## Installation npm install vogels - ## Getting Started First, you need to configure the [AWS SDK][2] with your credentials. @@ -53,7 +52,13 @@ Currently the following region codes are available in Amazon: | us-west-2 | US West (Oregon) | ### Define a Model -Models are defined through the toplevel define method. +The [Joi module](https://github.com/hapijs/joi) is used for defining schemas and needs to be imported: + +``` +var Joi = require('joi');` +``` + +Models are defined through the toplevel define method. ```js var Account = vogels.define('Account', {