|
Aria 2.0.0
C++23 MVVM framework (C++20 minimum) — reactive, coroutine-first, ABI-layered
|
#include <validator.hpp>
Public Member Functions | |
| std::optional< Error > | first_error () const |
| First Error-severity entry, if any. | |
| std::optional< std::string > | first_error_message () const |
| First Error-severity message text, if any. | |
| std::vector< Error > | errors_for (std::string_view field_path) const |
| All Error-severity entries that target a given field path. | |
| bool | has_error_with_rule (std::string_view rule_id) const noexcept |
| True if any Error-severity entry has the given rule_id. | |
| operator bool () const noexcept | |
Public Attributes | |
| bool | valid = true |
| True iff there are no Error-severity entries. | |
| bool | pending = false |
| True while an async validator is running. | |
| bool | touched = false |
| True once the user has interacted with the field (typically on focus-out). | |
| bool | dirty = false |
| True once the field's value has moved away from its baseline. | |
| std::vector< Error > | errors |
| Hard failures (kind == Validation, severity == Error). | |
| std::vector< Error > | warnings |
| Soft advisories (kind == Validation, severity == Warning). | |
|
inlinenodiscard |
First Error-severity entry, if any.
|
inlinenodiscard |
First Error-severity message text, if any.
|
inlinenodiscard |
All Error-severity entries that target a given field path.
|
inlinenodiscardnoexcept |
True if any Error-severity entry has the given rule_id.
|
inlineexplicitnoexcept |
| bool aria::ValidationState::valid = true |
True iff there are no Error-severity entries.
Warnings do NOT make a field invalid.
| bool aria::ValidationState::pending = false |
True while an async validator is running.
| bool aria::ValidationState::touched = false |
True once the user has interacted with the field (typically on focus-out).
| bool aria::ValidationState::dirty = false |
True once the field's value has moved away from its baseline.
| std::vector<Error> aria::ValidationState::errors |
| std::vector<Error> aria::ValidationState::warnings |
Soft advisories (kind == Validation, severity == Warning).
DO NOT flip valid.