We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I want to render the following JSON but don't seem to be able to do it with RABL. Can anybody help?
{"worker": {"id": 1, "name": "foo"}, "errors": {...}, "code": -5}
but instead the errors key is always rendered inside my worker object.
errors
worker
# update.rabl object @worker => :worker extends "api/workers/attributes" node(:errors) {|w| w.errors } node(:code) {|w| w.api_code }
This relates to answer in #222, but I want errors and code to be rendered as shown above.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I want to render the following JSON but don't seem to be able to do it with RABL. Can anybody help?
but instead the
errors
key is always rendered inside myworker
object.This relates to answer in #222, but I want errors and code to be rendered as shown above.
The text was updated successfully, but these errors were encountered: