metadata.h
Class
-
class ValidatorEntry
Subclass for recording validator issues
Public Functions
-
ValidatorEntry(const std::string &path, const std::string &msg)
Construct a validator issue entry.
- Parameters:
path – [in] The json path associated with the issue.
msg – [in] The specific issue.
-
ValidatorEntry(const ValidatorEntry &other) = default
Construct a validator issue entry from another validator issue entry.
- Parameters:
other – [in] The other validator entry to copy from.
-
ValidatorEntry(ValidatorEntry &&other) = default
Move constructor to move from another validator issue entry.
- Parameters:
other – [in] The other validator entry to move from.
-
~ValidatorEntry() = default
Destructor.
-
std::string to_string() const
Return the string representation of the validation issue.
- Returns:
the string representation of the validation issue.
-
const std::string &get_path() const
Return the json path associated with the issue.
- Returns:
the json path associated with the issue.
-
const std::string &get_msg() const
Return the specific issue.
- Returns:
the specific issue.
-
ValidatorEntry(const std::string &path, const std::string &msg)
Structs
-
struct ValidatorIssues
Class for representing metadata issues.
Public Types
-
using EntryList = std::vector<ValidatorEntry>
Convenience alias for the issue list
Public Functions
-
std::string to_string() const
Return the string representation of all of the validation issues.
- Returns:
the string representation of all of the validation issues.
Public Members
-
EntryList information
Validation issues at the information level.
-
EntryList warning
Validation issues at the warning level.
-
EntryList critical
Validation issues at the critical level.
-
class ValidatorEntry
Subclass for recording validator issues
Public Functions
-
ValidatorEntry(const std::string &path, const std::string &msg)
Construct a validator issue entry.
- Parameters:
path – [in] The json path associated with the issue.
msg – [in] The specific issue.
-
ValidatorEntry(const ValidatorEntry &other) = default
Construct a validator issue entry from another validator issue entry.
- Parameters:
other – [in] The other validator entry to copy from.
-
ValidatorEntry(ValidatorEntry &&other) = default
Move constructor to move from another validator issue entry.
- Parameters:
other – [in] The other validator entry to move from.
-
~ValidatorEntry() = default
Destructor.
-
std::string to_string() const
Return the string representation of the validation issue.
- Returns:
the string representation of the validation issue.
-
const std::string &get_path() const
Return the json path associated with the issue.
- Returns:
the json path associated with the issue.
-
const std::string &get_msg() const
Return the specific issue.
- Returns:
the specific issue.
-
ValidatorEntry(const std::string &path, const std::string &msg)
-
using EntryList = std::vector<ValidatorEntry>