AutoMovie API
    Preparing search index...

    Class ViolationCollector

    Mutable insertion-ordered finding storage shared by validation predicates.

    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 measured length is nonfinite or 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 one range violation at <path>.<axis> for each non-finite component of a vector, worded <label> <axis> must be finite, but was <value>.

      Parameters

      • path: string

        Violation path of the checked vector.

      • value: IAutoMovieVector3

        Vector whose three components must be finite.

      • label: string

        Name of the vector 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
      • label: string = "value"

      Returns void