WPL.Validator.Result (WPL Validator v1.6.7)

Copy Markdown View Source

Outcome of WPL.Validator.validate/2.

Fields:

  • :valid? — true iff no error-severity findings.
  • :errors — list of WPL.Validator.Error.t(). May contain warning-severity entries even when valid? is true.

Summary

Types

t()

@type t() :: %WPL.Validator.Result{
  errors: [WPL.Validator.Error.t()],
  valid?: boolean()
}