Class JsonSchemaValidator

    • Constructor Detail

      • JsonSchemaValidator

        public JsonSchemaValidator​(URL schemaUrl)
    • Method Detail

      • validate

        public ValidationResult validate​(StructuredData target)
                                  throws ValidationException
        Description copied from interface: Validator
        Validates the target content by applying validation rules. When content fails validation the validator may throw an exception depending on the implementation.
        Specified by:
        validate in interface Validator<StructuredData>
        target - the target of validation
        the result of validation applied to the specified target
        ValidationException - indicates validation failure (implementation-specific)