Skip to content

v1.2.0 small addition to jsonapi package

Choose a tag to compare

@insomnius insomnius released this 04 Sep 13:20
· 7 commits to main since this release

Highlight

We're adding new method into jsonapi package to make easier assign set of errors into jsonapi body.

Changes

Added

JSONAPI

WithErrors jsonapi option. This method however would not assign error if the errors is already in the response.

jsonapi.BuildResponse(jsonapi.WithErrors(response.Errors))