Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 360 Bytes

README.md

File metadata and controls

29 lines (18 loc) · 360 Bytes

ht-tv4

This library lets you use JSON schemas with hudson-taylor.

Requires HT >6.0.0

Example

var httv4 = require('ht-tv4');

// setup your ht service and stuff here

var schema = httv4({
  "items": {
    "type": "boolean"
  }
});

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

License

MIT