05 Data Validation - Pioneer18/Rent-A-Car GitHub Wiki
Schema Validation
This application uses hapi/joi schema validation before any documents are created in the database. Hapi/joi adds an extra layer of robust validation on top of the built in Mongoose Schema validation.
Calendar Scheduling Validation
This application uses a custom Scheduling Middleware to validate that scheduled Rental Pickup Unavailability does not overlap nor commit any logical scheduling errors; such as a start date-time beginning after an event's end date-time.