toddmohney / json-api

Haskell Implementation of the JSON-API specification
http://hackage.haskell.org/package/json-api
MIT License
35 stars 14 forks source link

Support for Source in the JSON Error Object #34

Open shirren opened 5 years ago

shirren commented 5 years ago

The JSON API Spec supports an optional Source element for Errors as defined here https://jsonapi.org/format/#error-objects. Would be nice for the Error type to add an optional Source of type Text (i.e. Maybe Text).

shirren commented 5 years ago

@toddmohney any further thoughts on this?

shirren commented 5 years ago

@toddmohney sorry to bother you. Any further thoughts on this? This is something we could also use in our application.

toddmohney commented 5 years ago

@shirren sounds good to me. Feel free to submit a PR and we'll get this released.

shirren commented 5 years ago

@toddmohney thanks I'll submit a PR with that change.