Interface Issue
- All Known Implementing Classes:
AbstractIssue, AbstractLegacyIssue, JsonMappingError
Represents a single validation issue discovered during model validation.
Each issue has a code that uniquely identifies its type,
a severity indicating how critical the issue is,
and optional metadata providing additional context such as human-readable messages.
This is a sealed interface; all implementations must extend AbstractIssue.
-
Method Summary
Modifier and TypeMethodDescription@NonNull IssueCodegetCode()Returns the unique code identifying the type of this issue.@NonNull List<IssueMetadata> Returns additional metadata associated with this issue, such as human-readable messages.@NonNull IssueSeverityReturns the severity of this issue, indicating how critical it is.
-
Method Details
-
getSeverity
@NonNull IssueSeverity getSeverity()Returns the severity of this issue, indicating how critical it is.- Returns:
- the
IssueSeverity
-
getCode
-
getMetadata
@NonNull List<IssueMetadata> getMetadata()Returns additional metadata associated with this issue, such as human-readable messages.- Returns:
- an unmodifiable list of
IssueMetadata; may be empty
-