wultra / wultra/java-core

Enable deserialization of ErrorResponse subtypes

Open
#32 1 comment 0 reactions 1 assignee View on GitHub

@romanstrobl is already working on this.

Since Mar 16, 2021.

enhancement
Dominant language
Java
Stars
4
Forks
3
Avg merge
1d 16h
Merged PRs (30d)
5

Description

The DefaultRestClient can currently deserialize only the ErrorResponse type, but it fails to deserialize subtypes of the ErrorResponse. We should introduce a configuration option which allows to map error codes to types dynamically and allow to deserialize custom error responses which usually contain additional error data such as validation errors.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.