mojaloop / project

Repo to track product development issues for the Mojaloop project.
Other
22 stars 15 forks source link

Implement Error Code Enum for Consistency Across BCs #3960

Open TW-Ei-Nghon-Phoo opened 1 week ago

TW-Ei-Nghon-Phoo commented 1 week ago

User Story

As a developer, I want to implement a standardized error code enum for each bounded context (BC), So that the service can access it as a single source of truth and avoid changing error codes multiple times for different svc. Reference: https://github.com/mojaloop/transfers-bc/blob/main/packages/public-types-lib/src/enums.ts https://github.com/mojaloop/quoting-bc/blob/main/packages/public-types-lib/src/enums.ts Https://github.com/mojaloop/account-lookup-bc/blob/main/packages/public-types-lib/src/enums.ts

Tasks

elnyry-sam-k commented 1 week ago

hi @TW-Ei-Nghon-Phoo - whats the basis for this single source of truth for the error codes and possibly definitions. For example, like the FSPIOP error code definition: https://docs.mojaloop.io/api/fspiop/v1.1/api-definition.html#error-codes

These include several APIs - Administration, settlement and third-party APIs, so need some standard definitions.