@superhero/http-server-using-oas 4.7.15 → 4.7.17

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 CHANGED
@@ -1,3 +1,15 @@
1
+ ---
2
+ #### v4.7.17
3
+ ---
4
+
5
+ Version alignment...
6
+
7
+ ---
8
+ #### v4.7.16
9
+ ---
10
+
11
+ Bugfixed operation id containing hash sign.
12
+
1
13
  ---
2
14
  #### v4.7.15
3
15
  ---
package/oas-to-routes.js CHANGED
@@ -17,10 +17,11 @@ export default class OasToRoutes
17
17
  {
18
18
  for(const [ method, operation ] of Object.entries(operations))
19
19
  {
20
- const dispatcher = operation['operationId'] ?? operation['x-dispatcher']
20
+ let dispatcher = operation['operationId'] ?? operation['x-dispatcher']
21
21
 
22
22
  if('string' === typeof dispatcher)
23
23
  {
24
+ dispatcher = dispatcher.split('#').shift()
24
25
  this.router.setOasRoute(path, method, dispatcher, operation['x-middlewares'] ?? [])
25
26
  }
26
27
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superhero/http-server-using-oas",
3
- "version": "4.7.15",
3
+ "version": "4.7.17",
4
4
  "description": "Integrates the HTTP server and OAS (OpenAPI Specification) @superhero components",
5
5
  "keywords": [
6
6
  "HTTP 2.0",
@@ -24,14 +24,14 @@
24
24
  "test": "syntax-check; node --test --test-reporter=@superhero/audit/reporter --experimental-test-coverage"
25
25
  },
26
26
  "dependencies": {
27
- "@superhero/oas": "4.7.15",
28
- "@superhero/http-server": "4.7.15"
27
+ "@superhero/oas": "4.7.17",
28
+ "@superhero/http-server": "4.7.17"
29
29
  },
30
30
  "devDependencies": {
31
- "@superhero/audit": "4.7.15",
31
+ "@superhero/audit": "4.7.17",
32
32
  "@superhero/syntax-check": "0.0.2",
33
- "@superhero/http-request": "4.7.15",
34
- "@superhero/core": "4.7.15"
33
+ "@superhero/http-request": "4.7.17",
34
+ "@superhero/core": "4.7.17"
35
35
  },
36
36
  "author": {
37
37
  "name": "Erik Landvall",