Interface Issue

All Known Implementing Classes:
AbstractIssue, AbstractLegacyIssue, JsonMappingError

public sealed interface Issue permits AbstractIssue
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 Type
    Method
    Description
    @NonNull IssueCode
    Returns the unique code identifying the type of this issue.
    Returns additional metadata associated with this issue, such as human-readable messages.
    @NonNull IssueSeverity
    Returns 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

      @NonNull IssueCode getCode()
      Returns the unique code identifying the type of this issue.
      Returns:
      the IssueCode
    • 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