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

Add meta field to error serializer #109

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
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

Successfully merging this pull request may close these issues.

1 participant