@metreeca/blue - v0.10.0
    Preparing search index...

    Interface NumberRangeConstraints

    Value range bounds for numeric shape factories.

    Bounds the magnitudes admitted by a shape, independently of its datatype. Accepted on its own by the specialised factories, whose datatype and integrality are already fixed, and included in the full NumberConstraints set.

    interface NumberRangeConstraints {
        minExclusive?: number;
        maxExclusive?: number;
        minInclusive?: number;
        maxInclusive?: number;
        in?: readonly number[];
        hasValue?: readonly number[];
    }

    Hierarchy (View Summary)

    Index

    Properties

    minExclusive?: number

    Exclusive minimum value (value must be strictly greater).

    Inheritance — child value must be ≥ parent value, narrowing the exclusive lower bound.

    undefined (no minimum constraint)

    maxExclusive?: number

    Exclusive maximum value (value must be strictly less).

    Inheritance — child value must be ≤ parent value, narrowing the exclusive upper bound.

    undefined (no maximum constraint)

    minInclusive?: number

    Inclusive minimum value (value must be greater than or equal).

    Inheritance — child value must be ≥ parent value, narrowing the inclusive lower bound.

    undefined (no minimum constraint)

    maxInclusive?: number

    Inclusive maximum value (value must be less than or equal).

    Inheritance — child value must be ≤ parent value, narrowing the inclusive upper bound.

    undefined (no maximum constraint)

    in?: readonly number[]

    Allowed values (closed enumeration).

    When specified, values must be members of this list. Empty arrays are ignored.

    Inheritance — intersection of parent and child sets; empty result is reported as an error.

    undefined (no enumeration constraint)

    hasValue?: readonly number[]

    Required values that must be present.

    When specified, all listed values must appear in the resource. Empty arrays are ignored.

    Inheritance — union of parent and child required values; child must require all parent values.

    undefined (no required values)