From c00a3f946d9626cd3dfd27aeca4e29c069f3a76d Mon Sep 17 00:00:00 2001 From: Santhosh Kumar Tekuri Date: Sun, 19 May 2024 23:02:52 +0530 Subject: [PATCH] test: duration format must start with P --- tests/draft-next/optional/format/duration.json | 5 +++++ tests/draft2019-09/optional/format/duration.json | 5 +++++ tests/draft2020-12/optional/format/duration.json | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/tests/draft-next/optional/format/duration.json b/tests/draft-next/optional/format/duration.json index d5adca20..c4aa66ba 100644 --- a/tests/draft-next/optional/format/duration.json +++ b/tests/draft-next/optional/format/duration.json @@ -46,6 +46,11 @@ "data": "PT1D", "valid": false }, + { + "description": "must start with P", + "data": "4DT12H30M5S", + "valid": false + }, { "description": "no elements present", "data": "P", diff --git a/tests/draft2019-09/optional/format/duration.json b/tests/draft2019-09/optional/format/duration.json index 00d5f47a..2d515a64 100644 --- a/tests/draft2019-09/optional/format/duration.json +++ b/tests/draft2019-09/optional/format/duration.json @@ -46,6 +46,11 @@ "data": "PT1D", "valid": false }, + { + "description": "must start with P", + "data": "4DT12H30M5S", + "valid": false + }, { "description": "no elements present", "data": "P", diff --git a/tests/draft2020-12/optional/format/duration.json b/tests/draft2020-12/optional/format/duration.json index a3af56ef..a09fec5e 100644 --- a/tests/draft2020-12/optional/format/duration.json +++ b/tests/draft2020-12/optional/format/duration.json @@ -46,6 +46,11 @@ "data": "PT1D", "valid": false }, + { + "description": "must start with P", + "data": "4DT12H30M5S", + "valid": false + }, { "description": "no elements present", "data": "P",