From f0f802f21f9fab8fd57c6c9712018f9d938e9047 Mon Sep 17 00:00:00 2001 From: Henry Andrews Date: Fri, 22 Feb 2019 23:53:57 -0800 Subject: [PATCH] Add a "duration" format. --- jsonschema-validation.xml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/jsonschema-validation.xml b/jsonschema-validation.xml index 21200f34..d8647bdb 100644 --- a/jsonschema-validation.xml +++ b/jsonschema-validation.xml @@ -543,13 +543,15 @@
-
+
These attributes apply to string instances. Date and time format names are derived from RFC 3339, section 5.6. + The duration format is from the ISO 8601 ABNF as given + in Appendix A of RFC 3339. Implementations supporting formats SHOULD implement support for @@ -567,6 +569,10 @@ A string instance is valid against this attribute if it is a valid representation according to the "full-time" production. + + A string instance is valid against this attribute if it is + a valid representation according to the "duration" production. +