@kravc/dos 1.7.4 → 1.8.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kravc/dos",
3
- "version": "1.7.4",
3
+ "version": "1.8.1",
4
4
  "description": "Convention-based, easy-to-use library for building API-driven serverless services.",
5
5
  "keywords": [
6
6
  "Service",
@@ -25,7 +25,7 @@
25
25
  "author": "Alexander Kravets <a@kra.vc>",
26
26
  "license": "ISC",
27
27
  "dependencies": {
28
- "@kravc/schema": "^2.5.1",
28
+ "@kravc/schema": "^2.7.0",
29
29
  "cookie": "^0.5.0",
30
30
  "js-yaml": "^4.1.0",
31
31
  "jsonwebtoken": "^9.0.2",
package/src/Service.js CHANGED
@@ -169,7 +169,7 @@ class Service {
169
169
  let output
170
170
 
171
171
  try {
172
- output = this._validator.validate(object, outputSchema.id)
172
+ output = this._validator.validate(object, outputSchema.id, false, true)
173
173
 
174
174
  } catch (validationError) {
175
175
  throw new InvalidOutputError(object, validationError)
@@ -30,4 +30,3 @@ error:
30
30
 
31
31
  path:
32
32
  description: Path of invalid attribute
33
- type: array