Class ValidityResult
java.lang.Object
io.confluent.kafka.schemaregistry.type.logical.policy.ValidityResult
The outcome of a
LogicalTypeChecker.validate(io.confluent.kafka.schemaregistry.type.logical.policy.LogicalTypeChecker.Mode, io.confluent.kafka.schemaregistry.type.logical.LogicalType) call.
All violations are collected rather than failing on the first one, so a caller can present the
complete set of problems with a schema in one pass. Mirrors CompatibilityResult.
-
Method Summary
Modifier and TypeMethodDescriptiondescribe()Renders every violation as a single newline-separated string, suitable for an error message.The violations found, in the order they were discovered.booleanisValid()static ValidityResultof(List<Invalidity> invalidities) Returns a result carrying the given violations, orvalid()if there are none.toString()static ValidityResultvalid()Returns a result with no violations.
-
Method Details
-
valid
Returns a result with no violations. -
of
Returns a result carrying the given violations, orvalid()if there are none. -
isValid
public boolean isValid() -
getInvalidities
The violations found, in the order they were discovered. Empty when valid. -
describe
Renders every violation as a single newline-separated string, suitable for an error message. Returns the empty string when valid. -
toString
-