public final class SchemaDocValidator extends Object implements Validator<org.apache.avro.Schema>
Additionally for record fields of union type where one type is null, the doc is validated for the presence of the "null" string, with the expectation that the documentation contains a explanation on what in means.
Validator.Result
Constructor and Description |
---|
SchemaDocValidator() |
Modifier and Type | Method and Description |
---|---|
String |
getName() |
Class<org.apache.avro.Schema> |
getValidationInput() |
Validator.Result |
validate(org.apache.avro.Schema schema,
ValidatorMojo mojo) |
public String getName()
@Nonnull public Validator.Result validate(org.apache.avro.Schema schema, ValidatorMojo mojo)
public Class<org.apache.avro.Schema> getValidationInput()
getValidationInput
in interface Validator<org.apache.avro.Schema>
Copyright © 2018 SPF4J. All rights reserved.