Skip to content

Commit

Permalink
#1887-PUTauthorizationstransactionIdisnotvalidatingFSPIOPHeaders (#57)
Browse files Browse the repository at this point in the history
### Hotfix:
- Fixes to  OpenAPI v3 specification document:
    - Changed all params to references
    - Updated all schemas to references
    - Added missing params
    - Fixed quotation characters, i.e. `”` -> `"`
    - Resolved bug mojaloop/project#1887

### Maintenance:
- Removed Swagger v2 interface specification, re-moved Swagger tools that only support Swagger v2. The code is now fully dependent on the OpenAPI v3 Spec document. I.e. only one spec doc \:D/
- Refactored existing code/unit-tests to work with OpenAPI v3 API specifications
- Added OpenAPI v3 request generator as helper util
- Cleaned-up unused dependencies in code
- Cleaned-up unused dependencies/scripts in package.json
- Updated dependencies to latest versions
  • Loading branch information
mdebarros authored Dec 8, 2020
1 parent bf972c2 commit 26bca29
Show file tree
Hide file tree
Showing 15 changed files with 864 additions and 3,240 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
[![CircleCI](https://circleci.com/gh/mojaloop/transaction-requests-service.svg?style=svg)](https://circleci.com/gh/mojaloop/transaction-requests-service)


Swagger api [location](src/interface/swagger.json)
## Interface Specifications
- OpenAPI v3 Interface Specification: [src/interface/openapi.yaml](src/interface/openapi.yaml)
675 changes: 481 additions & 194 deletions package-lock.json

Large diffs are not rendered by default.

23 changes: 10 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@
"test:junit": "jest --reporters=default --reporters=jest-junit --testMatch '**/test/unit/**/*.test.js'",
"test:coverage": "jest --coverage --coverageThreshold='{}' --testMatch '**/test/unit/**/*.test.js'",
"test:coverage-check": "jest --coverage --testMatch '**/test/unit/**/*.test.js'",
"lint": "eslint .",
"regenerate": "yo swaggerize:test --framework hapi --apiPath './config/swagger.json'",
"generate-docs": "jsdoc -c jsdoc.json",
"standard": "standard",
"lint": "npx eslint .",
"generate-docs": "npx jsdoc -c jsdoc.json",
"standard": "npx standard",
"standard:fix": "npx standard --fix",
"build": "docker build -t transaction-requests-service:local -f ./Dockerfile ../",
"run": "docker run -p 3003:3003 --rm --link db:mysql transaction-requests-service:local",
"package-lock": "docker run --rm -it transaction-requests-service:local cat package-lock.json > package-lock.json",
Expand Down Expand Up @@ -68,13 +68,12 @@
"docdash": "1.2.0",
"hapi-swagger": "14.0.0",
"joi": "17.3.0",
"jsdoc": "3.6.6",
"mustache": "4.0.1",
"mustache": "4.1.0",
"parse-strings-in-object": "2.0.0",
"rc": "1.2.8"
},
"devDependencies": {
"eslint": "7.14.0",
"eslint": "7.15.0",
"eslint-config-standard": "16.0.2",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-node": "11.1.0",
Expand All @@ -83,16 +82,14 @@
"get-port": "5.1.1",
"jest": "26.6.3",
"jest-junit": "12.0.0",
"jsdoc": "3.6.6",
"license-checker": "25.0.1",
"ml-testing-toolkit-shared-lib": "11.2.0",
"npm-audit-resolver": "2.2.1",
"npm-check-updates": "10.2.2",
"npm-check-updates": "10.2.3",
"pre-commit": "1.2.2",
"sinon": "9.2.1",
"standard": "16.0.3",
"swagmock": "1.0.0"
},
"generator-swaggerize": {
"version": "4.1.0"
"standard": "16.0.3"
},
"nyc": {
"temp-directory": "./.nyc_output",
Expand Down
Loading

0 comments on commit 26bca29

Please sign in to comment.