{"record":{"id":"8d9d01000db81660","repo":"octobercms/october","slug":"the-min-value-parameter-is-not-defined-in-the-leng","errorCode":null,"errorMessage":"The min.value parameter is not defined in the Length Inspector validator configuration.","messagePattern":"The min\\.value parameter is not defined in the Length Inspector validator configuration\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"modules/backend/assets/foundation/controls/inspector/inspector.validator.length.js","lineNumber":38,"sourceCode":"\n        if (typeof value == 'boolean') {\n            this.throwError('The Length Inspector validator cannot work with Boolean values.')\n\n        }\n\n        var length = null\n\n        if(Object.prototype.toString.call(value) === '[object Array]' || typeof value === 'string') {\n            length = value.length\n        }\n        else if (typeof value === 'object') {\n            length = this.getObjectLength(value)\n        }\n\n        if (this.options.min !== undefined || this.options.max !== undefined) {\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 Length Inspector 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 Length Inspector validator configuration.')\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\n                }","sourceCodeStart":20,"sourceCodeEnd":56,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/backend/assets/foundation/controls/inspector/inspector.validator.length.js#L20-L56","documentation":"Error \"The min.value parameter is not defined in the Length Inspector validator configuration.\" thrown in octobercms/october.","triggerScenarios":"Thrown at modules/backend/assets/foundation/controls/inspector/inspector.validator.length.js:38 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b608633a7e8922487d91a8161499020121c3b3bf","analyzedAt":"2026-08-21T04:24:57.515Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}