Reputation: 1636
I'm trying to setup a backend REST API with Sails js. However validation is not working out of the box. Is this the normal behaviour?
I've looked at the guide and added validation to my model but still when I use something like POSTMAN on chrome it still creates the record without validation.
How can I ad validation to the REST API?
Upvotes: 1
Views: 476
Reputation: 2014
What adapter are you using? If it does not require a schema by default, you need to set schema:true
in the config.
Upvotes: 2