From e51cee25e7481492c087438e27ed9150ceefe7c6 Mon Sep 17 00:00:00 2001 From: Hillel Arnold Date: Thu, 13 Aug 2020 15:39:15 -0400 Subject: [PATCH 1/2] Add check for non-zero padded days and months --- tests/draft7/format.json | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/draft7/format.json b/tests/draft7/format.json index 93305f5c..296a0039 100644 --- a/tests/draft7/format.json +++ b/tests/draft7/format.json @@ -284,6 +284,16 @@ "description": "ignores null", "data": null, "valid": true + }, + { + "description": "invalidates non-padded month dates", + "data": "1998-1-20", + "valid": false + }, + { + "description": "invalidates non-padded day dates", + "data": "1998-01-1, + "valid": false } ] }, From 99ec45b8fadb176fc8ee75e65495ad22ead40c6f Mon Sep 17 00:00:00 2001 From: Hillel Arnold Date: Thu, 13 Aug 2020 15:47:59 -0400 Subject: [PATCH 2/2] fix formatting error --- tests/draft7/format.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/draft7/format.json b/tests/draft7/format.json index 296a0039..b89b74f0 100644 --- a/tests/draft7/format.json +++ b/tests/draft7/format.json @@ -292,7 +292,7 @@ }, { "description": "invalidates non-padded day dates", - "data": "1998-01-1, + "data": "1998-01-1", "valid": false } ]