OpenBankProject / OpenBankProject/OBP-API

Create Cards wrong error messages

Open
#722 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Scala
Stars
1.7k
Forks
482
Avg merge
1d 12h
Merged PRs (30d)
15

Description

image
If the develop use the same bank_card_number, it will cause the error .

{ "bank_card_number": "5", "name_on_card": "String", "issue_number": "String", "serial_number": "String", "valid_from_date": "2013-01-22T00:08:00Z", "expires_date": "2018-01-22T00:08:00Z", "enabled": true, "cancelled": true, "on_hot_list": true, "technology": "String", "networks": [ "String" ], "allows": [ "credit" ], "account_id": "1c08b6c8-28f4-4757-91cb-c249e9676199", "replacement": { "requested_date": "2013-01-22T00:08:00Z", "reason_requested": "Good Point" }, "pin_reset": [ { "requested_date": "2013-01-22T00:08:00Z", "reason_requested": "forgot" } ], "collected": "2013-01-22T00:08:00Z", "posted": "2013-01-22T00:08:00Z" }

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.

Research direction

Start at the Create Cards API endpoint and reproduce the request using an existing bank_card_number. Trace the resulting error response and compare it with the duplicate-field condition; done means the response clearly identifies the bank_card_number conflict.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.