From 18800bb7d970f8cd26ab874be3b42f637ebb1a4a Mon Sep 17 00:00:00 2001 From: Glen Robson Date: Thu, 9 Mar 2023 12:41:26 +0000 Subject: [PATCH] Typing the point selector --- schema/iiif_3_0.json | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/schema/iiif_3_0.json b/schema/iiif_3_0.json index 44804a8..8b3bc97 100644 --- a/schema/iiif_3_0.json +++ b/schema/iiif_3_0.json @@ -1031,15 +1031,17 @@ "if": { "type":"object", "properties": { - "type": { "type": "string" }, - "t": {} - }, - "required": ["type","t"] + "type": {"const":"PointSelector"} + } }, "then": { "type": "object", "properties": { - "type": { "type": "string" }, + "type": { + "type": "string", + "pattern": "^PointSelector$", + "default": "PointSelector" + }, "t": { "$ref": "#/types/duration" } }, "required": ["type","t"]