Skip to content

hudson-taylor/ht-joi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ht-joi

This library makes Joi schemas compatible with hudson-taylor

Requires HT >6.0.0

Example

var joi   = require('joi');
var htjoi = require('ht-joi');

// setup your ht service and stuff here

var schema = htjoi(joi.string().required());

service.on("echo", schema, function(data, callback) {
  return callback(null, data);
});

License

MIT

About

Schema wrapper for Joi

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published