You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -122,22 +130,10 @@ function ArraySchema(type) {
122
130
});
123
131
});
124
132
},
125
-
126
-
127
-
// concat(schema) {
128
-
// var next = MixedSchema.prototype.concat.call(this, schema)
129
-
//
130
-
// next._subType = schema._subType === undefined
131
-
// ? this._subType
132
-
// : schema._subType;
133
-
//
134
-
// return next
135
-
// },
136
-
137
133
of: functionof(schema){
138
134
varnext=this.clone();
139
135
140
-
if(schema!==false&&!(0,_isSchema2.default)(schema))thrownewTypeError('`array.of()` sub-schema must be a valid yup schema, or `false` to negate a current sub-schema. '+'got: '+(0,_typeName2.default)(schema)+' instead');
136
+
if(schema!==false&&!(0,_isSchema2.default)(schema))thrownewTypeError('`array.of()` sub-schema must be a valid yup schema, or `false` to negate a current sub-schema. '+'not: '+(0,_typeName2.default)(schema));
thrownewTypeError('The value of '+(options.path||'field')+' could not be cast to a value '+('that satisfies the schema type: "'+resolvedSchema._type+'". \n\n')+('attempted value: '+JSON.stringify(value)+' \n')+(formattedResult!==formattedValue ? 'result of cast: '+JSON.stringify(result) : ''));
0 commit comments