From f0d6d764eb65af649728f40799fecaba4e49f13b Mon Sep 17 00:00:00 2001 From: Ken Jarrad Date: Thu, 31 Oct 2019 14:52:56 +0000 Subject: [PATCH] Update DraftV4FormatAttributesDictionary.java Add missing "date" format. --- .../library/format/DraftV4FormatAttributesDictionary.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/github/fge/jsonschema/library/format/DraftV4FormatAttributesDictionary.java b/src/main/java/com/github/fge/jsonschema/library/format/DraftV4FormatAttributesDictionary.java index 727b445ac..e9e2732a1 100644 --- a/src/main/java/com/github/fge/jsonschema/library/format/DraftV4FormatAttributesDictionary.java +++ b/src/main/java/com/github/fge/jsonschema/library/format/DraftV4FormatAttributesDictionary.java @@ -22,6 +22,7 @@ import com.github.fge.jsonschema.core.util.Dictionary; import com.github.fge.jsonschema.core.util.DictionaryBuilder; import com.github.fge.jsonschema.format.FormatAttribute; +import com.github.fge.jsonschema.format.draftv3.DateAttribute; import com.github.fge.jsonschema.format.helpers.IPv4FormatAttribute; import com.github.fge.jsonschema.format.helpers.SharedHostNameAttribute; @@ -46,6 +47,8 @@ private DraftV4FormatAttributesDictionary() builder.addEntry("ipv4", new IPv4FormatAttribute("ipv4")); + builder.addEntry("date", DateAttribute.getInstance()); + DICTIONARY = builder.freeze(); }