{"record":{"id":"2418bf261c5abc22","repo":"octobercms/october","slug":"errormessage-property-propertyname-2418bf","errorCode":null,"errorMessage":"${errorMessage} Property: ${propertyName}","messagePattern":"(.+?) Property: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"modules/backend/vuecomponents/inspector/assets/js/classes/validatorset.js","lineNumber":13,"sourceCode":"import validators from './validators/index.js';\n\nexport class ValidatorSet {\n    #validators = [];\n    #propertyName;\n\n    constructor(options, propertyName) {\n        this.#propertyName = propertyName;\n        this.#makeValidators(options);\n    }\n\n    #throwError(errorMessage) {\n        throw new Error(errorMessage + ' Property: ' + this.#propertyName);\n    }\n\n    #makeValidators(options) {\n        // Handle legacy validation syntax properties:\n        //\n        // - required\n        // - validationPattern\n        // - validationMessage\n\n        if ((options.required !== undefined ||\n            options.validationPattern !== undefined ||\n            options.validationMessage !== undefined) &&\n            options.validation !== undefined) {\n            this.#throwError('Legacy and new validation syntax should not be mixed.');\n        }\n\n        if (options.required !== undefined && options.required) {\n            var validator = new validators.required(this.#propertyName, {","sourceCodeStart":1,"sourceCodeEnd":31,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/backend/vuecomponents/inspector/assets/js/classes/validatorset.js#L1-L31","documentation":"Generic sentinel in ValidatorSet's private #throwError: it formats errors from schema parsing (#makeValidators) and value validation (validate) by appending the offending property name to the caller's message. Seeing this error means the Inspector property schema for the named property is invalid — the actual cause is described in the message prefix (e.g. unknown validator type or invalid required/validationPattern usage).","triggerScenarios":"Thrown at modules/backend/vuecomponents/inspector/assets/js/classes/validatorset.js:13 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Read the message prefix to identify the schema problem, then correct that property's definition in the Inspector configuration","Verify the property uses either the legacy required/validationPattern/validationMessage syntax or the modern validators array, not a malformed mix"],"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"}