Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2f21097

Browse files
Bruno Casemiro KurzaweCapstan
Bruno Casemiro Kurzawe
authored andcommittedAug 31, 2019
Fixed issue regarding date 2017-10-15
1 parent e6d9207 commit 2f21097

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed
 

‎.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ target
44
build
55
.gradle
66
out
7+
/.nb-gradle/

‎src/main/java/com/github/fge/jsonschema/format/helpers/AbstractDateFormatAttribute.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public final void validate(final ProcessingReport report,
6161
final String value = data.getInstance().getNode().textValue();
6262

6363
try {
64-
formatter.parseDateTime(value);
64+
formatter.parseLocalDate(value);
6565
} catch (IllegalArgumentException ignored) {
6666
report.error(newMsg(data, bundle, "err.format.invalidDate")
6767
.putArgument("value", value).putArgument("expected", format));

‎src/test/resources/format/draftv3/date.json

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
[
2+
{
3+
"data": "2017-10-15",
4+
"valid": true
5+
},
26
{
37
"data": "2012-12-02",
48
"valid": true

0 commit comments

Comments
 (0)
Please sign in to comment.