@aeriajs/validation 0.0.128 → 0.0.129
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/dist/validate.js +4 -1
- package/dist/validate.mjs +4 -1
- package/package.json +1 -1
package/dist/validate.js
CHANGED
|
@@ -121,7 +121,10 @@ const validateProperty = (what, property, options = {}) => {
|
|
|
121
121
|
break;
|
|
122
122
|
}
|
|
123
123
|
case 'object': {
|
|
124
|
-
|
|
124
|
+
if ('properties' in property) {
|
|
125
|
+
return (0, exports.validate)(what, property, options);
|
|
126
|
+
}
|
|
127
|
+
return types_1.Result.result(what);
|
|
125
128
|
}
|
|
126
129
|
case 'array': {
|
|
127
130
|
if (!Array.isArray(what)) {
|
package/dist/validate.mjs
CHANGED
|
@@ -110,7 +110,10 @@ export const validateProperty = (what, property, options = {}) => {
|
|
|
110
110
|
break;
|
|
111
111
|
}
|
|
112
112
|
case "object": {
|
|
113
|
-
|
|
113
|
+
if ("properties" in property) {
|
|
114
|
+
return validate(what, property, options);
|
|
115
|
+
}
|
|
116
|
+
return Result.result(what);
|
|
114
117
|
}
|
|
115
118
|
case "array": {
|
|
116
119
|
if (!Array.isArray(what)) {
|