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

can't add custom message on jsonapi_errors, it a bug isn't it? #119

Open
helmiItsavirus opened this issue Jul 31, 2020 · 0 comments
Open

Comments

@helmiItsavirus
Copy link

helmiItsavirus commented Jul 31, 2020

how to add some custom message like meta on jsonapi_errors ?

this is original example
{ "errors": [ { "status": "422", "source": { "pointer": "/data/attributes/password" }, "title": "Unprocessable Entity", "detail": "Password is invalid", "code": "invalid" } ] }

I want add some error message like :

{ "errors": [ { "status": "422", "source": { "pointer": "/data/attributes/password" }, "title": "Unprocessable Entity", "detail": "Password is invalid", "code": "invalid" "custom_message1" : { "value1" : "1", "value2" : "2" }, "custom_message1" : { "value1" : "1", "value2" : "2" } } ] }

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