Pat R
Pat R

Reputation: 186

Sailsjs "required" Model Attribute in the default JSON API

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

Answers (1)

mikermcneil
mikermcneil

Reputation: 11271

Pat, what version are you on?

In 0.9, you should get an error response in this case.

Upvotes: 2

Related Questions