mathematic-inc / ts-japi

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

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

Closed fabriciotav closed 5 months ago

fabriciotav commented 10 months 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.