Skip to content

Latest commit

 

History

History
26 lines (15 loc) · 371 Bytes

README.md

File metadata and controls

26 lines (15 loc) · 371 Bytes

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