From 1762d6389b646c670f9a5c7e37f9ad95ce7ebf51 Mon Sep 17 00:00:00 2001 From: Adrian Pohl Date: Fri, 6 May 2022 13:54:06 +0200 Subject: [PATCH] Add pattern to description (#90) See https://github.com/dini-ag-kim/amb/pull/148#discussion_r866750259 --- draft/schemas/duration.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/draft/schemas/duration.json b/draft/schemas/duration.json index 0ad8a19..de19f52 100644 --- a/draft/schemas/duration.json +++ b/draft/schemas/duration.json @@ -2,7 +2,7 @@ "$id": "https://w3id.org/kim/amb/draft/schemas/duration.json", "$schema": "http://json-schema.org/draft-07/schema#", "title": "Duration", - "description": "The duration of the item (video, audio recording, etc.) in ISO 8601 duration format.", + "description": "The duration of the item (video, audio recording, etc.) in ISO 8601 duration format: P[n]Y[n]M[n]DT[n]H[n]M[n]S", "type": "string", "pattern": "^(-?)P(?=\\d|T\\d)(?:(\\d+)Y)?(?:(\\d+)M)?(?:(\\d+)([DW]))?(?:T(?:(\\d+)H)?(?:(\\d+)M)?(?:(\\d+(?:\\.\\d+)?)S)?)?$" } \ No newline at end of file