Skip to content

Commit

Permalink
Merge pull request #114 from tk3fftk/fix-string
Browse files Browse the repository at this point in the history
fix: add length to template for mysql index
  • Loading branch information
tkyi authored Mar 8, 2017
2 parents d7c1576 + e18cd84 commit 1c10b73
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,27 @@ const Regex = require('./regex');
const TEMPLATE_NAME = Joi
.string()
.regex(Regex.TEMPLATE_NAME)
.max(64)
.description('Name of the Template')
.example('node/npm-install');

const TEMPLATE_VERSION = Joi
.string()
.regex(Regex.VERSION)
.max(16)
.description('Version of the Template')
.example('1.2.3');

const TEMPLATE_DESCRIPTION = Joi
.string()
.max(256)
.description('Description of the Template')
.example('Installs npm modules');

const TEMPLATE_MAINTAINER = Joi
.string()
.email()
.max(64)
.description('Maintainer of the Template')
.example('foo@bar.com');

Expand Down

0 comments on commit 1c10b73

Please sign in to comment.