{"record":{"id":"54379b768d42fc93","repo":"octobercms/october","slug":"the-min-value-parameter-is-not-defined-in-the-insp-54379b","errorCode":null,"errorMessage":"The min.value parameter is not defined in the Inspector length validator configuration","messagePattern":"The min\\.value parameter is not defined in the Inspector length validator configuration","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"modules/backend/vuecomponents/inspector/assets/js/classes/validators/length.js","lineNumber":26,"sourceCode":"\n        var length;\n\n        if (typeof value === 'string') {\n            length = value.length;\n        }\n        else if (Array.isArray(value)) {\n            length = value.length;\n        }\n        else if (typeof value === 'object') {\n            length = Object.keys(value).length;\n        }\n        else {\n            return null;\n        }\n\n        if (this.options.min !== undefined) {\n            if (this.options.min.value === undefined) {\n                throw new Error('The min.value parameter is not defined in the Inspector length validator configuration');\n            }\n\n            if (length < this.options.min.value) {\n                return this.options.min.message !== undefined\n                    ? this.options.min.message\n                    : 'The value should not be shorter than ' + this.options.min.value;\n            }\n        }\n\n        if (this.options.max !== undefined) {\n            if (this.options.max.value === undefined) {\n                throw new Error('The max.value parameter is not defined in the Inspector length validator configuration');\n            }\n\n            if (length > this.options.max.value) {\n                return this.options.max.message !== undefined\n                    ? this.options.max.message\n                    : 'The value should not be longer than ' + this.options.max.value;","sourceCodeStart":8,"sourceCodeEnd":44,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/backend/vuecomponents/inspector/assets/js/classes/validators/length.js#L8-L44","documentation":"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.","triggerScenarios":"Thrown at modules/backend/vuecomponents/inspector/assets/js/classes/validators/length.js:26 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","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"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b608633a7e8922487d91a8161499020121c3b3bf","analyzedAt":"2026-08-21T04:24:57.515Z","contentChangedAt":"2026-08-21T04:24:57.515Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}