badmfck-api-server 3.5.0 → 3.5.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.
@@ -97,8 +97,10 @@ class Validator {
97
97
  object[i] = structure["$__" + i + "_default"];
98
98
  }
99
99
  else {
100
- if (!optional)
100
+ if (!optional) {
101
101
  errors.push("no field '" + i + "'");
102
+ continue;
103
+ }
102
104
  else {
103
105
  foundKeys.push(i);
104
106
  continue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "badmfck-api-server",
3
- "version": "3.5.0",
3
+ "version": "3.5.1",
4
4
  "description": "Simple API http server based on express",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",