Class ApicurioDataModelContentValidator
- java.lang.Object
-
- io.apicurio.registry.rules.validity.ApicurioDataModelContentValidator
-
- All Implemented Interfaces:
ContentValidator
- Direct Known Subclasses:
AsyncApiContentValidator
,OpenApiContentValidator
public abstract class ApicurioDataModelContentValidator extends Object implements ContentValidator
A content validator implementation for the OpenAPI and AsyncAPI content types.- Author:
- eric.wittmann@gmail.com
-
-
Constructor Summary
Constructors Constructor Description ApicurioDataModelContentValidator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract String
getDataModelType()
Returns the type of data model being validated.void
validate(ValidityLevel level, ContentHandle artifactContent)
Called to validate the given content.
-
-
-
Method Detail
-
validate
public void validate(ValidityLevel level, ContentHandle artifactContent) throws RuleViolationException
Description copied from interface:ContentValidator
Called to validate the given content.- Specified by:
validate
in interfaceContentValidator
- Parameters:
level
- the levelartifactContent
- the content- Throws:
RuleViolationException
- for any invalid content- See Also:
ContentValidator.validate(io.apicurio.registry.rules.validity.ValidityLevel, ContentHandle)
-
getDataModelType
protected abstract String getDataModelType()
Returns the type of data model being validated. Subclasses must implement.
-
-