From f2f00b0d11feb6bd2a3d43f0046d935e3026aa92 Mon Sep 17 00:00:00 2001 From: Richard Bowman Date: Tue, 9 Aug 2022 13:33:10 +0100 Subject: [PATCH] Update w3c schema to 2020 format The `thing-context` definition used a 2019 draft of how to specify a tuple (where `items` set the mandatory items and `additionalItems` set the rest). These have been renamed to `prefixItems` and `items` respectively, and I have applied this change. Schema now validates again :) --- tests/w3c_td_schema.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/w3c_td_schema.json b/tests/w3c_td_schema.json index 62194083..e15f1bbf 100644 --- a/tests/w3c_td_schema.json +++ b/tests/w3c_td_schema.json @@ -66,10 +66,10 @@ "thing-context": { "oneOf": [{ "type": "array", - "items": [{ + "prefixItems": [{ "$ref": "#/definitions/thing-context-w3c-uri" }], - "additionalItems": { + "items": { "anyOf": [{ "$ref": "#/definitions/anyUri" },