[validation] Trait support