Skip to content

Add meta field to error serializer #109

New issue

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

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

Already on GitHub? # to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pelargir
Copy link

@pelargir pelargir commented Jan 20, 2025

What is the current behavior?

The error serializer does not include the optional meta field when serializing JSON:API error objects.

What is the new behavior?

The meta field is included when serializing error objects. See https://jsonapi.org/format/#error-objects

Checklist

Please make sure the following requirements are complete:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes /
    features)
  • All automated checks pass (CI/CD)

Per the JSON:API spec, the meta field can optionally be included in
error response objects.

See https://jsonapi.org/format/#error-objects
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant