Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /usr/local/lib/node_modules/strapi/node_modules/yup/es/ drwxr-xr-x | |
| Viewing file: Select action/file-type: import printValue from './util/printValue';
export var mixed = {
default: '${path} is invalid',
required: '${path} is a required field',
oneOf: '${path} must be one of the following values: ${values}',
notOneOf: '${path} must not be one of the following values: ${values}',
notType: function notType(_ref) {
var path = _ref.path,
type = _ref.type,
value = _ref.value,
originalValue = _ref.originalValue;
var isCast = originalValue != null && originalValue !== value;
var msg = path + " must be a `" + type + "` type, " + ("but the final value was: `" + printValue(value, true) + "`") + (isCast ? " (cast from the value `" + printValue(originalValue, true) + "`)." : '.');
if (value === null) {
msg += "\n If \"null\" is intended as an empty value be sure to mark the schema as `.nullable()`";
}
return msg;
}
};
export var string = {
length: '${path} must be exactly ${length} characters',
min: '${path} must be at least ${min} characters',
max: '${path} must be at most ${max} characters',
matches: '${path} must match the following: "${regex}"',
email: '${path} must be a valid email',
url: '${path} must be a valid URL',
trim: '${path} must be a trimmed string',
lowercase: '${path} must be a lowercase string',
uppercase: '${path} must be a upper case string'
};
export var number = {
min: '${path} must be greater than or equal to ${min}',
max: '${path} must be less than or equal to ${max}',
lessThan: '${path} must be less than ${less}',
moreThan: '${path} must be greater than ${more}',
notEqual: '${path} must be not equal to ${notEqual}',
positive: '${path} must be a positive number',
negative: '${path} must be a negative number',
integer: '${path} must be an integer'
};
export var date = {
min: '${path} field must be later than ${min}',
max: '${path} field must be at earlier than ${max}'
};
export var boolean = {};
export var object = {
noUnknown: '${path} field cannot have keys not specified in the object shape'
};
export var array = {
min: '${path} field must have at least ${min} items',
max: '${path} field must have less than or equal to ${max} items'
};
export default {
mixed: mixed,
string: string,
number: number,
date: date,
object: object,
array: array,
boolean: boolean
}; |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0392 ]-- |