mathematic-inc / ts-japi

A highly-modular (typescript-friendly)-framework agnostic library for serializing data to the JSON:API specification
Apache License 2.0
205 stars 16 forks source link

[FR] Update `ErrorSource` interface to support JSON:API v1.1 #72

Closed fabriciotav closed 8 months ago

fabriciotav commented 1 year ago

Is your feature request related to a problem? *

The error object in JSON:API v1.1 was expanded, now the source object defines a new member, header:

[...] header: a string indicating the name of a single request header which caused the error. [...]

Describe the solution you'd like*

Expand the ErrorSource interface to include header.