Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(mojaloop/#2704): core-services support for non-breaking backward…
… api compatibility (#496) feat(mojaloop/#2704): core-services support for non-breaking backward api compatibility - mojaloop/project#2704 - updated default.json config for PROTOCOL_VERSIONS, and updated related usage based on mojaloop/project#2660 to accept a validationList for the content-type - updated dependencies - fixed audit issues - fixed unit tests BREAKING CHANGE: - Config PROTOCOL_VERSIONS.CONTENT has now been modified to support backward compatibility for minor versions (i.e. v1.0 & 1.1) as follows: > ``` > "PROTOCOL_VERSIONS": { > "CONTENT": "1.1", <-- used when generating messages from the "SWITCH", and validate incoming FSPIOP API requests/callbacks CONTENT-TYPE headers > "ACCEPT": { > "DEFAULT": "1", <-- used when generating messages from the "SWITCH" > "VALIDATELIST": [ <-- used to validate incoming FSPIOP API requests/callbacks ACCEPT headers > "1", > "1.0", > "1.1" > ] > } > }, > ``` > > to be consistent with the ACCEPT structure as follows: > > ``` > "PROTOCOL_VERSIONS": { > "CONTENT": { > "DEFAULT": "1.1", <-- used when generating messages from the "SWITCH" > "VALIDATELIST": [ <-- used to validate incoming FSPIOP API requests/callbacks CONTENT-TYPE headers > "1.1", > "1.0" > ] > }, > "ACCEPT": { > "DEFAULT": "1", <-- used when generating messages from the "SWITCH" > "VALIDATELIST": [ <-- used to validate incoming FSPIOP API requests/callbacks ACCEPT headers > "1", > "1.0", > "1.1" > ] > } > }, > ```
- Loading branch information