Reputation: 186
Should SailsJS be throwing an HTTP error if a "required" model attribute is not passed into the automatically generated JSON API?
Or is this logic I must implement myself in the Controller?
Upvotes: 1
Views: 242
Reputation: 11271
Pat, what version are you on?
In 0.9, you should get an error response in this case.
Upvotes: 2