octobercms/october · error · Error
The min.value parameter is not defined in the Inspector…
Error message
The min.value parameter is not defined in the Inspector length validator configuration
What it means
Configuration error in the Inspector length validator: the schema declares a min constraint for the property (options.min is present) but the constraint object lacks its required value key (options.min.value). The validator cannot know the minimum length to enforce, so it aborts rather than guessing.
Solutions
- Add the value key to the min constraint, e.g. min: {value: 1, message: '...'}
- Remove the min object entirely if no minimum length should be enforced
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at modules/backend/vuecomponents/inspector/assets/js/classes/validators/length.js:26 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of octobercms/october@b608633a7e (2026-08-21).
Data as JSON: /api/errors/54379b768d42fc93.
Report an issue: GitHub.
Appendix: source
Thrown at modules/backend/vuecomponents/inspector/assets/js/classes/validators/length.js:26
var length;
if (typeof value === 'string') {
length = value.length;
}
else if (Array.isArray(value)) {
length = value.length;
}
else if (typeof value === 'object') {
length = Object.keys(value).length;
}
else {
return null;
}
if (this.options.min !== undefined) {
if (this.options.min.value === undefined) {
throw new Error('The min.value parameter is not defined in the Inspector length validator configuration');
}
if (length < this.options.min.value) {
return this.options.min.message !== undefined
? this.options.min.message
: 'The value should not be shorter than ' + this.options.min.value;
}
}
if (this.options.max !== undefined) {
if (this.options.max.value === undefined) {
throw new Error('The max.value parameter is not defined in the Inspector length validator configuration');
}
if (length > this.options.max.value) {
return this.options.max.message !== undefined
? this.options.max.message
: 'The value should not be longer than ' + this.options.max.value;View on GitHub (pinned to b608633a7e)