You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a Hub Operator of a Mojaloop Switch
I want to respond with an HTTP error code for requests that do not follow the (Swagger) API Definition Data Model and or data validation agains DB so that only valid requests are accepted and processed in the Switch
Tasks:
Implement Scheme and DB validations based on missing items as per list here bugs 6-14
Bug 6 - Validate content type header
Bug 7 - Validate missing mandatory fields: quoteid, transactionid, payer partyIdType, payee partyIdType, payer partyIdentifier, payee partyIdentifier. Follow up session will take care of quoteid, transactionid and other missing fields were non an issue.
Bug 8 - sending duplicate quoteid request with modified data is not returning error 3106, it was tested and found a non issue as expected 3106 is being returned at error callback
Bug 9 - Validate missing destination FSP results in 3201, tested currently missing field is detected, but instead of expected 3201, 3100 is being returned
Update HeaderValidation Plugin errorInformation response as no 2001 Internal Server Error should be returned to outside client callers. For example in the case of "Unsupported Media Type" for when a non-valid content-type header is received an error code of 3100 should be used.
Acceptance Criteria:
Designs are up-to date
Unit Tests pass
Integration Tests pass
Code Style & Coverage meets standards
Changes made to config (default.json) are broadcast to team and follow-up tasks added to update helm charts and other deployment config.
Goal:
As a Hub Operator of a Mojaloop Switch
I want to respond with an HTTP error code for requests that do not follow the (Swagger) API Definition Data Model and or data validation agains DB so that only valid requests are accepted and processed in the Switch
Tasks:
Acceptance Criteria:
Pull Requests:
PRs to fix bugs 6,7,8,9,14
Follow-up:
POST/Quotes with quoteid or transactionid missing mandatory field, error not displayed correctly due to hapi regex not properly handling empty value #1018
Fix bugs 10-13 from Issue#9 of Quoting-Service #1016
Dependencies:
Accountability: