@superhero/http-server-using-oas 4.7.10 → 4.7.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/index.js +2 -5
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
package/index.js
CHANGED
|
@@ -63,13 +63,12 @@ export default class HttpServerUsingOas
|
|
|
63
63
|
method = method.toLowerCase()
|
|
64
64
|
|
|
65
65
|
const route = { dispatcher, conditions:[], middlewares:[] }
|
|
66
|
-
let operation
|
|
67
66
|
|
|
68
67
|
try
|
|
69
68
|
{
|
|
70
|
-
operation = this.oas.specification.paths[path][method]
|
|
69
|
+
const operation = this.oas.specification.paths[path][method]
|
|
71
70
|
this.oas.validateOperation(operation)
|
|
72
|
-
operation = this.oas.denormalizeOperation(operation)
|
|
71
|
+
route.operation = this.oas.denormalizeOperation(operation)
|
|
73
72
|
}
|
|
74
73
|
catch(reason)
|
|
75
74
|
{
|
|
@@ -102,8 +101,6 @@ export default class HttpServerUsingOas
|
|
|
102
101
|
route.middlewares.push('@superhero/http-server-using-oas/dispatcher/downstream/responses')
|
|
103
102
|
route.middlewares.push(...[middlewares].flat())
|
|
104
103
|
|
|
105
|
-
Object.defineProperty(route, 'operation', { value: operation })
|
|
106
|
-
|
|
107
104
|
this.server.router.set(`${method} ${path}`, route)
|
|
108
105
|
}
|
|
109
106
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superhero/http-server-using-oas",
|
|
3
|
-
"version": "4.7.
|
|
3
|
+
"version": "4.7.11",
|
|
4
4
|
"description": "Integrates the HTTP server and OAS (OpenAPI Specification) @superhero components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"HTTP 2.0",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"test": "syntax-check; node --test --test-reporter=@superhero/audit/reporter --experimental-test-coverage"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@superhero/oas": "4.7.
|
|
27
|
-
"@superhero/http-server": "4.7.
|
|
26
|
+
"@superhero/oas": "4.7.11",
|
|
27
|
+
"@superhero/http-server": "4.7.11"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@superhero/audit": "4.7.
|
|
30
|
+
"@superhero/audit": "4.7.11",
|
|
31
31
|
"@superhero/syntax-check": "0.0.2",
|
|
32
|
-
"@superhero/http-request": "4.7.
|
|
33
|
-
"@superhero/core": "4.7.
|
|
32
|
+
"@superhero/http-request": "4.7.11",
|
|
33
|
+
"@superhero/core": "4.7.11"
|
|
34
34
|
},
|
|
35
35
|
"author": {
|
|
36
36
|
"name": "Erik Landvall",
|