Class ApicurioDataModelContentValidator
java.lang.Object
io.apicurio.registry.rules.validity.ApicurioDataModelContentValidator
- All Implemented Interfaces:
ContentValidator
- Direct Known Subclasses:
OpenApiContentValidator
A content validator implementation for the OpenAPI and AsyncAPI content types.
- Author:
- eric.wittmann@gmail.com
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract StringReturns the type of data model being validated.voidvalidate(ValidityLevel level, ContentHandle artifactContent, Map<String, ContentHandle> resolvedReferences) voidvalidateReferences(ContentHandle artifactContent, List<io.apicurio.registry.rest.v2.beans.ArtifactReference> references)
-
Constructor Details
-
ApicurioDataModelContentValidator
public ApicurioDataModelContentValidator()
-
-
Method Details
-
validate
public void validate(ValidityLevel level, ContentHandle artifactContent, Map<String, ContentHandle> resolvedReferences) throws RuleViolationException- Specified by:
validatein interfaceContentValidator- Throws:
RuleViolationException- See Also:
-
validateReferences
public void validateReferences(ContentHandle artifactContent, List<io.apicurio.registry.rest.v2.beans.ArtifactReference> references) throws RuleViolationException - Specified by:
validateReferencesin interfaceContentValidator- Throws:
RuleViolationException- See Also:
-
getDataModelType
Returns the type of data model being validated. Subclasses must implement.
-