@dedaca/deda-core-validator
v3.0.3
Published
This is a JSON schema validator that adds pre and post processing to the input object to be validated. The JSON Schema Validator specifications does not change the input, it simply provides a valid or not valid output. In many processes we might want to
Downloads
5
Readme
Validator Plus
This is a JSON schema validator that adds pre and post processing to the input object to be validated. The JSON Schema Validator specifications does not change the input, it simply provides a valid or not valid output. In many processes we might want to to clean up the input or add/change before and after it is validated. This is where this Validator Plus comes in.
This is a list of support properties for the different schema types.
Any
- _set - Sets the value to the given value.
String
- _trim
- _toLowerCase
- _toUpperCase
- format
- objectId - Validates during validation and convert it to ObjectId in post-processing.
Date
- _toDate - Converts the value to a Date object.
Updates
Version 3.0.1
- Added missing npm packages