AutoMovie API
    Preparing search index...

    Interface IAutoMovieViolationCollector

    Mutable insertion-ordered finding storage shared by validation predicates.

    interface IAutoMovieViolationCollector {
        items: IAutoMovieConstraintViolation[];
        direction(path: string, value: IAutoMovieVector3, label: string): void;
        finiteVector(path: string, value: IAutoMovieVector3, label: string): void;
        nonEmpty(path: string, value: string, label: string): void;
        positive(path: string, value: number | undefined, label: string): void;
        push(
            kind: AutoMovieViolationKind,
            path: string,
            expected: string,
            value: unknown,
            overshoot?: number,
            severity?: "error" | "warning",
        ): void;
        range(
            path: string,
            value: unknown,
            min: number,
            max: number,
            label?: string,
        ): void;
        toValidation(): IAutoMovieValidation;
        unitQuaternion(
            path: string,
            value: IAutoMovieQuaternion,
            label: string,
        ): void;
        warn(
            kind: AutoMovieViolationKind,
            path: string,
            expected: string,
            value: unknown,
            overshoot?: number,
        ): void;
    }
    Index

    Violations accumulated in insertion order.

    • Checks a direction that need not be unit length: one range violation at <path>.<axis> per non-finite component, or, when every component is finite, one at path if the length is 1e-12 or shorter.

      Parameters

      • path: string

        Violation path of the checked vector.

      • value: IAutoMovieVector3

        Direction to check; a finite measured length above 1e-12 passes.

      • label: string

        Name of the direction in the messages.

      Returns void

    • Pushes a type violation when value is empty or only whitespace; the message is <label> must be non-empty.

      Parameters

      • path: string

        Violation path of the checked string.

      • value: string

        String that must carry a non-whitespace character.

      • label: string

        Name of the field in the message.

      Returns void

    • Pushes a range violation at path unless a value is a finite number strictly above zero; a missing value fails and is reported as null.

      Parameters

      • path: string

        Violation path of the checked number.

      • value: number | undefined

        Number that must be finite and positive, or undefined.

      • label: string

        Name of the number in the message.

      Returns void

    • Finite range check [min, max]; pushes a range violation unless value is a finite number inside it. value is unknown so a field read off an untyped payload is narrowed here rather than cast to number first. Failed string conversion changes only the diagnostic representation to an uninspectable value; the finding retains the original value.

      Parameters

      • path: string
      • value: unknown
      • min: number
      • max: number
      • Optionallabel: string

      Returns void