OpenBankProject / OpenBankProject/OBP-API
Create Cards wrong error messages
Nobody has claimed this yet.
- Dominant language
- Scala
- Stars
- 1.7k
- Forks
- 482
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 15
Description

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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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