morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
morph::ui::CheckDecl Struct Reference

A validation across elements (spec 5 §6). More...

#include <document.hpp>

Public Attributes

std::string id
 The check's id.
std::string path
 The declaration's JSON Pointer.
ExprPtr assertion
 The condition; false fails the check, null does not.
ExprPtr message
 The message added to each target's errors.
std::vector< std::string > targets
 The elements the message attaches to.
bool blocking = false
 Whether a failure blocks ready.

Detailed Description

A validation across elements (spec 5 §6).

Definition at line 351 of file document.hpp.

Member Data Documentation

◆ id

std::string morph::ui::CheckDecl::id

The check's id.

Definition at line 353 of file document.hpp.

◆ path

std::string morph::ui::CheckDecl::path

The declaration's JSON Pointer.

Definition at line 355 of file document.hpp.

◆ assertion

ExprPtr morph::ui::CheckDecl::assertion

The condition; false fails the check, null does not.

Definition at line 357 of file document.hpp.

◆ message

ExprPtr morph::ui::CheckDecl::message

The message added to each target's errors.

Definition at line 359 of file document.hpp.

◆ targets

std::vector<std::string> morph::ui::CheckDecl::targets

The elements the message attaches to.

Definition at line 361 of file document.hpp.

◆ blocking

bool morph::ui::CheckDecl::blocking = false

Whether a failure blocks ready.

Definition at line 363 of file document.hpp.


The documentation for this struct was generated from the following file: