-
Notifications
You must be signed in to change notification settings - Fork 64
[WIP] Add basic support for ActiveModel::Errors. #5
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
Conversation
JSONAPI::Serializable::ErrorRenderer.render(errors, options) | ||
end | ||
|
||
def self.build_active_model_errors(errors) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Method has too many lines. [11/10]
end | ||
end | ||
|
||
module InstanceMethods |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing top-level module documentation comment.
module JSONAPI | ||
module Rails | ||
module ActiveModel | ||
module Errors |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing top-level module documentation comment.
@@ -0,0 +1,25 @@ | |||
module JSONAPI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing frozen string literal comment.
816201c
to
9ef0567
Compare
@app.call(env) | ||
end | ||
|
||
def deserialize!(request, body) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Method has too many lines. [11/10]
end | ||
end | ||
|
||
module InstanceMethods |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing top-level module documentation comment.
4c702c6
to
4f003a4
Compare
hi @beauby, will this be available on release? |
Hi @nathanpsouza – yes it is planned. There's a bit of work left but I have it on my radar. |
Closing in favor of #22. |
No description provided.