Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A standard way of reporting validation-errors #25

Open
simen opened this issue Oct 3, 2012 · 0 comments
Open

A standard way of reporting validation-errors #25

simen opened this issue Oct 3, 2012 · 0 comments

Comments

@simen
Copy link
Member

simen commented Oct 3, 2012

We need a machine-readable way to report validation-errors. You should be able to wrap a block of active-record stuff and automatically catch any validation errors and forward the message to the caller as a json-hash with the fields and error messages for each. This is e.g. needed in checkpoint /api/v1/identities.rb:10 where a validation error will yield an Internal Server Error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant