Comparing version 0.1.13 to 0.1.14
{ | ||
"name": "enjoi", | ||
"version": "0.1.13", | ||
"version": "0.1.14", | ||
"description": "Converts json-schema to Joi schema for validation.", | ||
@@ -5,0 +5,0 @@ "main": "lib/enjoi.js", |
@@ -9,4 +9,3 @@ [![Build Status](https://travis-ci.org/tlivings/enjoi.png)](https://travis-ci.org/tlivings/enjoi) [![NPM version](https://badge.fury.io/js/enjoi.png)](http://badge.fury.io/js/enjoi) | ||
`enjoi` is built against json-schema v4, but does not support all json-schema properties | ||
(sometimes due to lack of support in Joi). | ||
`enjoi` is built against json-schema v4, but does not support all of json-schema (yet). | ||
@@ -24,3 +23,3 @@ Here is a list of some missing keyword support still being worked on: | ||
- `object:minProperties` | ||
- `array:items` (supports as schema, not supported as array). | ||
- `array:items` (supports as single schema, not supported as array of schemas). | ||
- `array:additionalItems` | ||
@@ -30,5 +29,5 @@ | ||
- `enjoi` - function with arguments: | ||
- `enjoi(schema [, subSchemas])` | ||
- `schema` - a JSON schema. | ||
- `subSchemas` - an object with keys representing schema ids, and values representing schemas. | ||
- `subSchemas` - an (optional) object with keys representing schema ids, and values representing schemas. | ||
@@ -106,4 +105,4 @@ Example: | ||
$ tv4 vs joi benchmark: | ||
$ tv4: 48744 operations/second. | ||
$ enjoi: 114419 operations/second. | ||
$ tv4: 44122 operations/second. (0.0226644ms) | ||
$ joi: 111245 operations/second. (0.0089892ms) | ||
``` |
9958
105