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 validator configuration

What it means

Configuration error in the shared numeric validator base (used by number/float Inspector validators): the schema defines a min constraint (options.min present) but the constraint object has no value key. The minimum bound is declared yet unusable, so doCommonChecks aborts before comparing the number.

Solutions

  1. Define min.value in the validator configuration, e.g. min: {value: 0}
  2. Remove the min object if the property has no lower bound
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at modules/backend/vuecomponents/inspector/assets/js/classes/validators/number-base.js:8 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/333f66397cc1666f. Report an issue: GitHub.

Appendix: source

Thrown at modules/backend/vuecomponents/inspector/assets/js/classes/validators/number-base.js:8

import BaseValidator from './base.js';

export class NumberBaseValidator extends BaseValidator {
    doCommonChecks(value) {
        if (this.options.min !== undefined || this.options.max !== undefined) {
            if (this.options.min !== undefined) {
                if (this.options.min.value === undefined) {
                    throw new Error('The min.value parameter is not defined in the Inspector validator configuration');
                }

                if (value < this.options.min.value) {
                    return this.options.min.message !== undefined ?
                        this.options.min.message :
                        "The value should not be less 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 table Inspector validator configuration');
                }

                if (value > this.options.max.value) {
                    return this.options.max.message !== undefined ?
                        this.options.max.message :
                        "The value should not be greater than " + this.options.max.value;

View on GitHub (pinned to b608633a7e)