mixin

ValidateItem

@Js
const mixin ValidateItem

ValidateItem models one warning or error message from validation

methods dis

Display string as "Slot 'slot'

level

Warning or error level

msg

Message for validation error rendered from the rule msg template

rule

Rule which reported this item as a ref to a sys::ValidateRule instance such as "sys::overMaxVal"

slot

Slot of subject or null if on subject itself

subject

Subject dict

subjectId

Id of the subject dict or null

val

Offending value when applicable

dis Str dis()

Display string as "Slot 'slot': msg" or just msg when not on a slot

level abstract ValidateLevel level()

Warning or error level

msg abstract Str msg()

Message for validation error rendered from the rule msg template

rule abstract Ref rule()

Rule which reported this item as a ref to a sys::ValidateRule instance such as "sys::overMaxVal"

slot abstract Str? slot()

Slot of subject or null if on subject itself. This is dotted path if item is on a nested dict in the subject.

subject abstract Dict subject()

Subject dict. If validate was called against a non-dict value then this is an empty dict.

subjectId Ref? subjectId()

Id of the subject dict or null

val abstract Obj? val()

Offending value when applicable

Haxall 4.0.7 ∙ 27-Oct-2026 09:10 EDT