Class SchemaDocValidator
- java.lang.Object
-
- org.spf4j.maven.plugin.avro.avscp.validation.impl.SchemaDocValidator
-
public final class SchemaDocValidator extends Object implements Validator<Schema>
Validates schema documentation fields are not empty for: Records, Fixed, Enum, Record Fields.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.
- Author:
- Zoltan Farkas
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.spf4j.maven.plugin.avro.avscp.validation.Validator
Validator.Result
-
-
Constructor Summary
Constructors Constructor Description SchemaDocValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()Class<Schema>getValidationInput()Validator.Resultvalidate(Schema schema, ValidatorMojo mojo)
-
-
-
Method Detail
-
validate
@Nonnull public Validator.Result validate(Schema schema, ValidatorMojo mojo)
-
getValidationInput
public Class<Schema> getValidationInput()
- Specified by:
getValidationInputin interfaceValidator<Schema>
-
-