nfx-serialization 0.3.0
Cross-platform C++ JSON serialization library with extensible trait capabilities
Loading...
Searching...
No Matches
nfx::serialization::json::ValidationError::ErrorEntry Struct Reference

Simple error entry structure for convenient ValidationError construction. More...

#include <nfx/serialization/json/SchemaValidator.h>

Collaboration diagram for nfx::serialization::json::ValidationError::ErrorEntry:

Public Attributes

std::string path
 JSON path where error occurred.
std::string message
 Human-readable error message.
std::string constraint
 Schema constraint that failed.
std::string expectedValue = {}
 Expected value or constraint.
std::string actualValue = {}
 Actual value found in document.

Detailed Description

Simple error entry structure for convenient ValidationError construction.

Provides aggregate initialization syntax for creating validation errors with all error details in a single struct. Useful for functional-style error creation and collection patterns.

Definition at line 63 of file SchemaValidator.h.

Member Data Documentation

◆ actualValue

std::string nfx::serialization::json::ValidationError::ErrorEntry::actualValue = {}

Actual value found in document.

Definition at line 69 of file SchemaValidator.h.

◆ constraint

std::string nfx::serialization::json::ValidationError::ErrorEntry::constraint

Schema constraint that failed.

Definition at line 67 of file SchemaValidator.h.

◆ expectedValue

std::string nfx::serialization::json::ValidationError::ErrorEntry::expectedValue = {}

Expected value or constraint.

Definition at line 68 of file SchemaValidator.h.

◆ message

std::string nfx::serialization::json::ValidationError::ErrorEntry::message

Human-readable error message.

Definition at line 66 of file SchemaValidator.h.

◆ path

std::string nfx::serialization::json::ValidationError::ErrorEntry::path

JSON path where error occurred.

Definition at line 65 of file SchemaValidator.h.


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