ValidateItem
@Js
const mixin ValidateItem
ValidateItem models one warning or error message from validation
Display string as "Slot 'slot'
Warning or error level
Message for validation error rendered from the rule msg template
Rule which reported this item as a ref to a sys::ValidateRule
instance such as "sys::overMaxVal"
Slot of subject or null if on subject itself
Subject dict
Id of the subject dict or null
Offending value when applicable
Str dis()
Display string as "Slot 'slot': msg" or just msg when not on a slot
abstract ValidateLevel level()
Warning or error level
abstract Str msg()
Message for validation error rendered from the rule msg template
abstract Ref rule()
Rule which reported this item as a ref to a sys::ValidateRule
instance such as "sys::overMaxVal"
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.
abstract Dict subject()
Subject dict. If validate was called against a non-dict value then this is an empty dict.
Ref? subjectId()
Id of the subject dict or null
abstract Obj? val()
Offending value when applicable