Closed smartepsh closed 7 years ago
Hey there,
from the page you linked:
The resource MUST have a non-empty associated #errors object. The errors object must have a #messages method that returns a hash of error name to array of descriptions.
which SimpleCommand::Errors
doesn't currently have.
If you want to add this method, feel free to submit a PR with this change.
thanks...I'll try..
Going to close this one, feel free to open another issue or submit that PR. Thanks!
Hi I have the same problem
Just add:
module SimpleCommand
class Errors
def messages
self
end
end
end
JSON API Errors Document in AMS I want to render the error message by using AMS jsonapi serializer. But there is something wrong if I render a simple_command result. I can render the errors to json but can not to jsonapi.
log:
What should I do?