@wabot-dev/framework 0.5.4 → 0.5.5

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.
@@ -33,7 +33,7 @@ function validateModel(value, info) {
33
33
  propertyErrors = [];
34
34
  propertiesErrors[propertyName] = propertyErrors;
35
35
  }
36
- propertyErrors.push(propertyValidatorResult.error.description);
36
+ propertyErrors.push(propertyValidatorResult.error);
37
37
  }
38
38
  else {
39
39
  currentPropValue = propertyValidatorResult.value;
@@ -56,7 +56,7 @@ function validateModel(value, info) {
56
56
  propertyErrors = [];
57
57
  propertiesErrors[propertyName] = propertyErrors;
58
58
  }
59
- propertyErrors.push(propertyValidatorResult.error.description);
59
+ propertyErrors.push(propertyValidatorResult.error);
60
60
  }
61
61
  }
62
62
  }
@@ -219,7 +219,7 @@ interface IValidationError {
219
219
  }
220
220
  interface IModelValidationError extends IValidationError {
221
221
  properties: {
222
- [key: string]: string[];
222
+ [key: string]: IValidationError[];
223
223
  };
224
224
  }
225
225
  interface IArrayValidationError extends IValidationError {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wabot-dev/framework",
3
- "version": "0.5.4",
3
+ "version": "0.5.5",
4
4
  "description": "Framework for IA Chat Bots",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",