From d3252a7c584aadf3c73880202d37a801f80af8fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bence=20Er=C5=91s?= Date: Thu, 26 Jan 2017 11:29:15 +0100 Subject: [PATCH] Revert "Revert "adding getter to StringSchema#formatValidator property - fixes #53"" This reverts commit b223b06393962bb39c2ee7929a213c50d35d3712. --- core/src/main/java/org/everit/json/schema/StringSchema.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/src/main/java/org/everit/json/schema/StringSchema.java b/core/src/main/java/org/everit/json/schema/StringSchema.java index c2fe6f406..11a08bd63 100644 --- a/core/src/main/java/org/everit/json/schema/StringSchema.java +++ b/core/src/main/java/org/everit/json/schema/StringSchema.java @@ -197,6 +197,10 @@ private String patternIfNotNull(Pattern pattern) { } } + public FormatValidator getFormatValidator() { + return formatValidator; + } + @Override public int hashCode() { return Objects.hash(super.hashCode(), minLength, maxLength, pattern, requiresString, formatValidator);