You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 18, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 18, 2021. It is now read-only.
Return appropriate error code for invalid type in model object #32
Trying to assign a String to an int throws an exception that returns a 500, but this should be intercepted and turned into a 400.
Expected: Status Code: 400
Actual: <Instance of 'Response'>
Which: Response Body: {"error":"invalid input syntax for integer: "foo""}, Status Code Is Actually: 500
Activity
itsjoeconway commentedon Jan 7, 2016
Additionally, supplying an int for a String simply encodes the int as a String - this may or may not be desired.