Skip to main content

ValidationIssue Struct

A single reported issue from a Contract. More...

Declaration

struct simaai::neat::ValidationIssue { ... }

Included Headers

#include <ValidationReport.h>

Public Member Attributes Index

ValidationSeverityseverity = ValidationSeverity::Error

Severity of this issue. More...

std::stringcontract_id

Contract::id() of the emitting contract. More...

std::stringcode

Stable machine code (e.g., "SINK_NOT_LAST"). More...

std::stringmessage

Human-readable diagnostic. More...

intnode_index = -1

Index in NodeGroup, or -1 if not Node-specific. More...

std::stringnode_kind

Node::kind() of the offending Node, if any. More...

std::stringnode_label

User label of the offending Node, if any. More...

Description

A single reported issue from a Contract.

Carries severity, the contract that emitted it, a machine-stable code (suitable for filtering/asserting in tests), a human-readable message, and best-effort Node location info.

Definition at line 57 of file ValidationReport.h.

Public Member Attributes

code

std::string simaai::neat::ValidationIssue::code

Stable machine code (e.g., "SINK_NOT_LAST").

Definition at line 62 of file ValidationReport.h.

62 std::string code;

contract_id

std::string simaai::neat::ValidationIssue::contract_id

Contract::id() of the emitting contract.

Definition at line 61 of file ValidationReport.h.

61 std::string contract_id;

message

std::string simaai::neat::ValidationIssue::message

Human-readable diagnostic.

Definition at line 63 of file ValidationReport.h.

63 std::string message;

node_index

int simaai::neat::ValidationIssue::node_index = -1

Index in NodeGroup, or -1 if not Node-specific.

Definition at line 66 of file ValidationReport.h.

66 int node_index = -1;

node_kind

std::string simaai::neat::ValidationIssue::node_kind

Node::kind() of the offending Node, if any.

Definition at line 67 of file ValidationReport.h.

67 std::string node_kind;

node_label

std::string simaai::neat::ValidationIssue::node_label

User label of the offending Node, if any.

Definition at line 68 of file ValidationReport.h.

68 std::string node_label;

severity

ValidationSeverity simaai::neat::ValidationIssue::severity = ValidationSeverity::Error

Severity of this issue.

Definition at line 58 of file ValidationReport.h.


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


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.