Interface IJsonValidationError

All Superinterfaces:
Serializable

public interface IJsonValidationError extends Serializable
A single JSON validation error, containing a location and a message. Used by IJsonValidationResult.errors().
Since:
8.5.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    The column where the validation error occurred, if applicable.
    int
    The line where the validation error occurred, if applicable.
    The location where the validation error occurred.
    A message describing the validation error.
  • Method Details

    • column

      int column()
      The column where the validation error occurred, if applicable. The first column is 1.
      Returns:
      The column, or -1 if unknown.
    • line

      int line()
      The line where the validation error occurred, if applicable. The first line is 1.
      Returns:
      The line, or -1 if unknown.
    • location

      String location()
      The location where the validation error occurred. Could be e.g. a JSON path or some other descriptor.
      Returns:
      The location.
    • message

      String message()
      A message describing the validation error.
      Returns:
      The message.