Skip to content

Releases: driggl/jsonapi_errors_handler

Version 0.4.0

18 Nov 02:15
9b4e64e
Compare
Choose a tag to compare

Overview

  • Added support to notify about unexpected errors
  • Fixed possible naming clash for configuration method in controller
  • Added a support to handle all errors that inherit from JsonapiErrorsHandler::Errors::StandardError - by default.

Version 0.3.0

21 Sep 22:54
Compare
Choose a tag to compare
  • Improved code quality
  • Hooked up reporting
  • removed irb from the required file list
  • added required ruby version
  • upgraded dependencies

Version 0.2.0

16 May 09:50
Compare
Choose a tag to compare
Version 0.2.0 Pre-release
Pre-release

This release contains a bug fix that makes the gem backward-incompatible in some cases.

**Description: **

ErrorSerializer returned

  {
    errors: [[...]] 
  ]

when called with an array of validation errors.

Now it matches the https://jsonapi.org specification for errors format.

Fix naming clash for rails applications

26 Dec 10:23
Compare
Choose a tag to compare
Pre-release

Rails applications have config method defined in controllers so our configuration overrode that which ended up with an error.

Add basic configuration and better handling for unmapped errors

26 Dec 09:13
Compare
Choose a tag to compare
  • ee04b4f - Fix configuration and spec files
  • 1877069 - Update README to include information about handling validation errors
  • 2729bb4 - Fix rendering unhandled errors and instance errors

Fix custom details for errors

20 Dec 11:37
Compare
Choose a tag to compare
Pre-release

In this release, we fixed the issue with setting up custom error messages (error details for validation errors) as well as setting up the custom details.

Fix Mapping error

19 Jul 14:07
Compare
Choose a tag to compare
Fix Mapping error Pre-release
Pre-release

We had a bug in error mapper, and therefore mapping errors according to Readme did not work.

Fix validation error

27 May 11:39
Compare
Choose a tag to compare
Fix validation error Pre-release
Pre-release

The Jsonapi::Errors::StandardError had reversed dependency, which caused a bug that any updates to serializable_hash was ignored on rendering.

Now it's fixed.

Todo:

  • cover errors code with tests to prevent situation like this in the future

Custom error logging

05 May 21:40
351f8c0
Compare
Choose a tag to compare
Custom error logging Pre-release
Pre-release

Version change log:

  1. Added a custom logging mechanism
  2. Improved documentation
  3. Configured Rubocop and Codacy for high quality code.

[PATCH] require_dependency error

05 Apr 22:55
351f8c0
Compare
Choose a tag to compare
Pre-release

Changelog:

  • #4 - ErrorMapper is now tested.
  • #3 - require_dependency is not used so it's more integrated with Non-Rails applications