@superhero/http-server-using-oas 4.8.4 → 4.8.6

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,13 @@
1
+ ---
2
+ #### v4.8.6
3
+ ---
4
+
5
+ returning 500 instead of 500 on failed response contract
6
+
7
+ ---
8
+ #### v4.8.5
9
+ ---\n\nVersion alignment...
10
+
1
11
  ---
2
12
  #### v4.8.4
3
13
  ---\n\nVersion alignment...
@@ -39,7 +39,7 @@ export default class ResponsesMiddleware
39
39
  {
40
40
  const error = new Error(`Invalid response for operation ${request.method} ${request.url}`)
41
41
  error.code = 'E_OAS_INVALID_RESPONSE'
42
- error.status = 400
42
+ error.status = 500
43
43
  error.cause = reason
44
44
  session.abortion.abort(error)
45
45
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superhero/http-server-using-oas",
3
- "version": "4.8.4",
3
+ "version": "4.8.6",
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.8.4",
28
- "@superhero/http-server": "4.8.4"
27
+ "@superhero/oas": "4.8.6",
28
+ "@superhero/http-server": "4.8.6"
29
29
  },
30
30
  "devDependencies": {
31
- "@superhero/audit": "4.8.4",
31
+ "@superhero/audit": "4.8.6",
32
32
  "@superhero/syntax-check": "0.0.2",
33
- "@superhero/http-request": "4.8.4",
34
- "@superhero/core": "4.8.4"
33
+ "@superhero/http-request": "4.8.6",
34
+ "@superhero/core": "4.8.6"
35
35
  },
36
36
  "author": {
37
37
  "name": "Erik Landvall",