Skip to content

Releases: driggl/jsonapi_errors_handler

Version 0.4.0

Choose a tag to compare

@swilgosz swilgosz released this 18 Nov 02:15
9b4e64e

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

Choose a tag to compare

@swilgosz swilgosz released this 21 Sep 22:54
  • Improved code quality
  • Hooked up reporting
  • removed irb from the required file list
  • added required ruby version
  • upgraded dependencies

Version 0.2.0

Version 0.2.0 Pre-release
Pre-release

Choose a tag to compare

@swilgosz swilgosz released this 16 May 09:50

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

Pre-release

Choose a tag to compare

@swilgosz swilgosz released this 26 Dec 10:23

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

Choose a tag to compare

@swilgosz swilgosz released this 26 Dec 09:13
  • 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

Pre-release

Choose a tag to compare

@swilgosz swilgosz released this 20 Dec 11:37

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

Fix Mapping error Pre-release
Pre-release

Choose a tag to compare

@swilgosz swilgosz released this 19 Jul 14:07

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

Fix validation error

Fix validation error Pre-release
Pre-release

Choose a tag to compare

@swilgosz swilgosz released this 27 May 11:39

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

Custom error logging Pre-release
Pre-release

Choose a tag to compare

@swilgosz swilgosz released this 05 May 21:40
351f8c0

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

Pre-release

Choose a tag to compare

@swilgosz swilgosz released this 05 Apr 22:55
351f8c0

Changelog:

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