Class JsonFormatValidator


  • public class JsonFormatValidator
    extends Object
    • Field Detail

      • DEFAULT_VALIDATOR

        public static final JsonFormatValidator DEFAULT_VALIDATOR
        The default validator which performs a NOOP.
    • Constructor Detail

      • JsonFormatValidator

        public JsonFormatValidator​(Object delegate)
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • validateFormat

        public String validateFormat​(String instanceType,
                                     String format,
                                     Object instance)
        Parameters:
        instanceType - The type of the related instance
        format - The format specified in the schema for the current object instance.
        instance - The current object instance that is currently being validated.
        Returns:
        Any string if there are any format validation errors, null if there are no validation errors.