Interface ContentValidator
-
- All Known Implementing Classes:
ApicurioDataModelContentValidator,AsyncApiContentValidator,AvroContentValidator,GraphQLContentValidator,JsonSchemaContentValidator,KafkaConnectContentValidator,OpenApiContentValidator,ProtobufContentValidator,WsdlContentValidator,XmlContentValidator,XsdContentValidator
public interface ContentValidatorValidates content. Syntax and semantic validations are possible based on configuration. An implementation of this interface should exist for each content-type supported by the registry.- Author:
- eric.wittmann@gmail.com
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidvalidate(ValidityLevel level, ContentHandle artifactContent)Called to validate the given content.
-
-
-
Method Detail
-
validate
void validate(ValidityLevel level, ContentHandle artifactContent) throws RuleViolationException
Called to validate the given content.- Parameters:
level- the levelartifactContent- the content- Throws:
RuleViolationException- for any invalid content
-
-