- Fix README typos
- Within the function only pass a schema to addSchema and do not pipe arguments other arguments from forEach
- Testing auto builds with Travis CI.
- Allow middleware creator to specify dependency schemas for split schemas (@SpainTrain).
- Pass
JsonSchemaValidation
instance tonext
middleware instead of throwing. - Added name properties to error constructors.
- Fixed README. messages key is an array of strings.
- added .jscsrc and .jshintrc files for formatting and code integrity
- moved most of the unit tests over to functional tests as it is a better indicator of whether the module is working.
- dropped object-assign dependency.
- no longer exporting jsonschema exports. Users can require jsonschema directly if they are needed.
jsonschema.Validator
jsonschema.ValidatorResult
jsonschema.ValidationError
jsonschema.SchemaError
jsonschema.validate
validateReq
is nowvalidate
and receives one argument, an object where the keys are the request properties and the values are the respective schemas. This is more flexible going forward.validateReq
allowed optionsvalidator
andifInvalid
. These have been removed as they provide little value and complicate the API.
- Initial build