ru.tinkoff.kora.validation.common.Violation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of validation-common Show documentation
Show all versions of validation-common Show documentation
Kora validation-common module
package ru.tinkoff.kora.validation.common;
import ru.tinkoff.kora.validation.common.ValidationContext.Path;
import jakarta.annotation.Nonnull;
/**
* Indicates validation failure
*/
public interface Violation {
/**
* @return failure message
*/
@Nonnull
String message();
/**
* @return path for value where failure occurred
*/
@Nonnull
Path path();
}